diff options
Diffstat (limited to 'Lib/argparse.py')
-rw-r--r-- | Lib/argparse.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Lib/argparse.py b/Lib/argparse.py index cde1fe95b9..34ddb61b7d 100644 --- a/Lib/argparse.py +++ b/Lib/argparse.py @@ -120,15 +120,6 @@ except NameError: def _callable(obj): return hasattr(obj, '__call__') or hasattr(obj, '__bases__') -# silence Python 2.6 buggy warnings about Exception.message -if _sys.version_info[:2] == (2, 6): - import warnings - warnings.filterwarnings( - action='ignore', - message='BaseException.message has been deprecated as of Python 2.6', - category=DeprecationWarning, - module='argparse') - SUPPRESS = '==SUPPRESS==' |