Ticket #1129: silence-basexception-warning.dpatch

File silence-basexception-warning.dpatch, 1.1 KB (added by davidsarah, at 2010-07-20T01:00:54Z)

init.py: silence DeprecationWarning? about BaseException?.message globally.

Line 
1Tue Jul 20 01:44:16 GMT Daylight Time 2010  david-sarah@jacaranda.org
2  * __init__.py: silence DeprecationWarning about BaseException.message globally.
3
4New patches:
5
6[__init__.py: silence DeprecationWarning about BaseException.message globally.
7david-sarah@jacaranda.org**20100720004416
8 Ignore-this: 539564a3a21c23d38cfabe3dbd90eaa5
9] {
10hunk ./src/allmydata/__init__.py 38
11     warnings.filters.pop()
12     warnings.filters.pop()
13 
14-# This warning is generated by twisted, but not when it is imported, only on an error.
15+# This warning is generated by twisted, PyRex, and possibly other packages,
16+# but can happen at any time, not only when they are imported. See
17+# http://tahoe-lafs.org/trac/tahoe-lafs/ticket/1129 .
18 warnings.filterwarnings("ignore", category=DeprecationWarning,
19     message="BaseException.message has been deprecated as of Python 2.6",
20hunk ./src/allmydata/__init__.py 43
21-    module=".*twisted.*", append=True)
22+    append=True)
23 
24 __version__ = "unknown"
25 try:
26}
27
28Context:
29
30[TAG allmydata-tahoe-1.7.1
31zooko@zooko.com**20100719131352
32 Ignore-this: 6942056548433dc653a746703819ad8c
33] 
34Patch bundle hash:
357a5a5d0f16c9cd3984315684f02c0f32b293d4ab