aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_strptime.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_strptime.py')
-rw-r--r--Lib/test/test_strptime.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_strptime.py b/Lib/test/test_strptime.py
index ba65649857e..df94f7b5f6d 100644
--- a/Lib/test/test_strptime.py
+++ b/Lib/test/test_strptime.py
@@ -206,7 +206,7 @@ class StrptimeTests(unittest.TestCase):
_strptime.strptime("2005", bad_format)
except ValueError:
continue
- except Exception, err:
+ except Exception as err:
self.fail("'%s' raised %s, not ValueError" %
(bad_format, err.__class__.__name__))
else: