]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/dbconn.py
Suppress warnings in the most suitable files.
[dak.git] / daklib / dbconn.py
index 227a8af130e4b77e8b25ea011f4c87adebf5aa9a..72453f643d26dc35b768395d5d9886264d49b3eb 100755 (executable)
@@ -59,6 +59,16 @@ from config import Config
 from textutils import fix_maintainer
 from dak_exceptions import NoSourceFieldError
 
+# suppress some deprecation warnings in squeeze related to sqlalchemy
+import warnings
+warnings.filterwarnings('ignore', \
+    "The SQLAlchemy PostgreSQL dialect has been renamed from 'postgres' to 'postgresql'.*", \
+    SADeprecationWarning)
+# TODO: sqlalchemy needs some extra configuration to correctly reflect
+# the ind_deb_contents_* indexes - we ignore the warnings at the moment
+warnings.filterwarnings("ignore", 'Predicate of partial index', SAWarning)
+
+
 ################################################################################
 
 # Patch in support for the debversion field type so that it works during