Suppress 'integer argument expected, got float' DeprecationWarning everywhere
authordavid-sarah <david-sarah@jacaranda.org>
Sun, 23 May 2010 22:11:57 +0000 (15:11 -0700)
committerdavid-sarah <david-sarah@jacaranda.org>
Sun, 23 May 2010 22:11:57 +0000 (15:11 -0700)
src/allmydata/__init__.py

index db62dd26a03b9c54dd3cbcdd5403a17393f08c4f..1f9a265baca02a9ca63b436a705e3fe91ff0f53c 100644 (file)
@@ -35,6 +35,12 @@ finally:
     warnings.filters.pop()
     warnings.filters.pop()
 
+
+warnings.filterwarnings("ignore", category=DeprecationWarning,
+    message="integer argument expected, got float",
+    append=True)
+
+
 __version__ = "unknown"
 try:
     from allmydata._version import __version__