Ignore shift-related warnings from PIL (ticket #50).
authorJoel Rosdahl <joel@rosdahl.net>
Fri, 3 Sep 2004 22:17:37 +0000 (22:17 +0000)
committerJoel Rosdahl <joel@rosdahl.net>
Fri, 3 Sep 2004 22:17:37 +0000 (22:17 +0000)
src/lib/kofoto/shelf.py

index f20e89b..1044240 100644 (file)
@@ -50,6 +50,10 @@ from kofoto.cachedobject import CachedObject
 
 import warnings
 warnings.filterwarnings("ignore", "DB-API extension")
+warnings.filterwarnings(
+    "ignore",
+    ".*losing bits or changing sign will return a long.*",
+    FutureWarning)
 
 ######################################################################
 ### Database schema.