diff options
author | Marius Gedminas <marius@gedmin.as> | 2013-02-07 16:02:46 +0000 |
---|---|---|
committer | Marius Gedminas <marius@gedmin.as> | 2013-02-07 16:02:46 +0000 |
commit | 8aca43884b33c9dcf14623fd9c9b0fcfc6dfeb3e (patch) | |
tree | ee757a6d8a9025ab2c969d20f83427a2ccd3db82 /src/zope/tal/tests | |
parent | 9321b4b18c2b1542089ae5bc5d1b29dfde03f11a (diff) | |
download | zope-tal-8aca43884b33c9dcf14623fd9c9b0fcfc6dfeb3e.tar.gz |
Towards Py3K: use "except ... as ..."
Diffstat (limited to 'src/zope/tal/tests')
-rw-r--r-- | src/zope/tal/tests/markbench.py | 2 | ||||
-rw-r--r-- | src/zope/tal/tests/test_files.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/zope/tal/tests/markbench.py b/src/zope/tal/tests/markbench.py index f7eb092..14ac26a 100644 --- a/src/zope/tal/tests/markbench.py +++ b/src/zope/tal/tests/markbench.py @@ -180,6 +180,6 @@ if __name__ == "__main__": p.sort_stats('time', 'calls') try: p.print_stats(20) - except IOError, e: + except IOError as e: if e.errno != errno.EPIPE: raise diff --git a/src/zope/tal/tests/test_files.py b/src/zope/tal/tests/test_files.py index c29f03f..eff23ee 100644 --- a/src/zope/tal/tests/test_files.py +++ b/src/zope/tal/tests/test_files.py @@ -53,7 +53,7 @@ class FileTestCase(unittest.TestCase): zope.tal.runtest.main() finally: os.chdir(pwd) - except SystemExit, what: + except SystemExit as what: if what.code: self.fail("output for %s didn't match" % self.__file) |