
Author: brett.cannon Date: Wed Feb 28 22:12:06 2007 New Revision: 54039 Modified: python/branches/p3yk_no_args_on_exc/Lib/_strptime.py Log: Fix time.strptime for the removal of BaseException.args. Modified: python/branches/p3yk_no_args_on_exc/Lib/_strptime.py ============================================================================== --- python/branches/p3yk_no_args_on_exc/Lib/_strptime.py (original) +++ python/branches/p3yk_no_args_on_exc/Lib/_strptime.py Wed Feb 28 22:12:06 2007 @@ -309,7 +309,7 @@ # KeyError raised when a bad format is found; can be specified as # \\, in which case it was a stray % but with a space after it except KeyError as err: - bad_directive = err.args[0] + bad_directive = err.message if bad_directive == "\\": bad_directive = "%" del err
participants (1)
-
brett.cannon