Opened at 2010-07-20T00:43:21Z
Last modified at 2010-10-26T01:41:56Z
#1129 closed defect
suppress DeprecationWarning in tahoe --version output — at Version 1
Reported by: | davidsarah | Owned by: | davidsarah |
---|---|---|---|
Priority: | minor | Milestone: | 1.8β |
Component: | code | Version: | 1.7.0 |
Keywords: | usability error easy DeprecationWarning reviewed | Cc: | |
Launchpad Bug: |
Description (last modified by davidsarah)
From ticket:1122#comment:2 :
% bin/tahoe --version /usr/lib/python2.6/dist-packages/Pyrex/Compiler/Errors.py:17: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 self.message = message allmydata-tahoe: 1.7.0-r4536, foolscap: 0.5.1, pycryptopp: 0.5.19, zfec: 1.4.7, Twisted: 8.2.0, Nevow: 0.9.33-r17222, zope.interface: 3.5.1, python: 2.6.2, platform: Linux-Ubuntu_9.04-i686-32bit_ELF, sqlite: 3.6.21, simplejson: 2.0.9, argparse: 1.1, pycrypto: 2.0.1, pyOpenSSL: 0.7, pyutil: 1.7.9, zbase32: 1.1.2, setuptools: 0.6c15dev, pyasn1: 0.0.11a, pysqlite: 2.4.1
The DeprecationWarning should have been suppressed.
Change History (2)
comment:1 Changed at 2010-07-20T00:51:13Z by davidsarah
- Component changed from code to code-frontend-cli
- Description modified (diff)
- Keywords easy added
- Milestone changed from 1.8.0 to 1.8β
- Owner changed from somebody to davidsarah
- Status changed from new to assigned
Changed at 2010-07-20T01:00:54Z by davidsarah
init.py: silence DeprecationWarning? about BaseException?.message globally.
Note: See
TracTickets for help on using
tickets.
source:src/allmydata/__init__.py contains code that is intended to suppress this warning, but says to do so only when it comes from twisted:
I think this should just be changed to a global filter, i.e. delete 'module=".*twisted.*", '. This particular deprecation is not important and doesn't ever merit bothering any end-user.