Rev 4450: (mbp) suppress deprecationwarning from gzip.py in file:///home/pqm/archives/thelove/bzr/%2Btrunk/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Wed Jun 17 04:58:57 BST 2009
At file:///home/pqm/archives/thelove/bzr/%2Btrunk/
------------------------------------------------------------
revno: 4450
revision-id: pqm at pqm.ubuntu.com-20090617035852-25gobfbjcvs141zw
parent: pqm at pqm.ubuntu.com-20090616193232-rorncr6v3z633n9u
parent: mbp at sourcefrog.net-20090617014019-m2pw3mx09kw0zi0r
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Wed 2009-06-17 04:58:52 +0100
message:
(mbp) suppress deprecationwarning from gzip.py
modified:
bzr bzr.py-20050313053754-5485f144c7006fa6
------------------------------------------------------------
revno: 4445.1.1
revision-id: mbp at sourcefrog.net-20090617014019-m2pw3mx09kw0zi0r
parent: pqm at pqm.ubuntu.com-20090616025031-veox1vdgpt769fsk
committer: Martin Pool <mbp at sourcefrog.net>
branch nick: 387139-warnings
timestamp: Wed 2009-06-17 11:40:19 +1000
message:
Ignore deprecation warnings from inside gzip.py
modified:
bzr bzr.py-20050313053754-5485f144c7006fa6
=== modified file 'bzr'
--- a/bzr 2009-06-12 08:44:38 +0000
+++ b/bzr 2009-06-17 01:40:19 +0000
@@ -20,6 +20,7 @@
import os
import sys
+import warnings
# update this on each release
_script_version = (1, 17, 0)
@@ -78,6 +79,17 @@
else:
import locale
+
+# The python2.6 release includes some libraries that have deprecation warnings
+# against the interpreter - see https://bugs.launchpad.net/bzr/+bug/387139
+warnings.filterwarnings('ignore',
+ r"(struct integer overflow masking is deprecated|"
+ r"'L' format requires 0 <= number <= 4294967295)",
+ DeprecationWarning,
+ 'gzip',
+ )
+
+
try:
locale.setlocale(locale.LC_ALL, '')
except locale.Error, e:
More information about the bazaar-commits
mailing list