diff options
Diffstat (limited to 'argparse.py')
-rw-r--r-- | argparse.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/argparse.py b/argparse.py index 1996f46..0f407e7 100644 --- a/argparse.py +++ b/argparse.py @@ -118,6 +118,15 @@ except NameError: result.reverse() return result +# 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==' |