[Debian-l10n-commits] r2772 - in /pootle/trunk/debian/patches: python26_deprecations.patch series
themill-guest at users.alioth.debian.org
themill-guest at users.alioth.debian.org
Wed Nov 16 16:08:25 UTC 2011
Author: themill-guest
Date: Wed Nov 16 16:08:25 2011
New Revision: 2772
URL: http://svn.debian.org/wsvn/?sc=1&rev=2772
Log:
Silence python2.6 DeprecationWarnings
Warnings aren't coming from pootle code by from elsewhere so having them
clutter logs is just silly.
Added:
pootle/trunk/debian/patches/python26_deprecations.patch
Modified:
pootle/trunk/debian/patches/series
Added: pootle/trunk/debian/patches/python26_deprecations.patch
URL: http://svn.debian.org/wsvn/pootle/trunk/debian/patches/python26_deprecations.patch?rev=2772&op=file
==============================================================================
--- pootle/trunk/debian/patches/python26_deprecations.patch (added)
+++ pootle/trunk/debian/patches/python26_deprecations.patch Wed Nov 16 16:08:25 2011
@@ -1,0 +1,13 @@
+--- a/localsettings.py
++++ b/localsettings.py
+@@ -2,6 +2,10 @@
+ #
+ # It is in Python syntax. Everything after '#' is ignored as comments.
+
++# Suppress this python 2.6 warning so that logs aren't full of noise
++import warnings
++warnings.filterwarnings("ignore", category=DeprecationWarning)
++
+ # Import some helper functions:
+ from pootle.install_dirs import *
+
Modified: pootle/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/pootle/trunk/debian/patches/series?rev=2772&op=diff
==============================================================================
--- pootle/trunk/debian/patches/series (original)
+++ pootle/trunk/debian/patches/series Wed Nov 16 16:08:25 2011
@@ -5,3 +5,4 @@
debian_remove_external
debian_use_dbconfig.patch
debian_extra_config.patch
+python26_deprecations.patch
More information about the Debian-l10n-commits
mailing list