diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2013-10-20 08:23:52 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2013-10-20 08:23:52 -0400 |
| commit | 6dfbb755d1f6994ccec9ae56ad7f2eedad2ed0d6 (patch) | |
| tree | 11be85589c7f72a5073ace06d563fafbf638b443 /lab | |
| parent | 50959ccaaa07ccfb5a01cb38eb5d2b548e0dfe9a (diff) | |
| download | python-coveragepy-git-6dfbb755d1f6994ccec9ae56ad7f2eedad2ed0d6.tar.gz | |
Except clause can now use 'as', no need for lots of sys.exc_info
--HG--
branch : 4.0
Diffstat (limited to 'lab')
| -rw-r--r-- | lab/parser.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lab/parser.py b/lab/parser.py index ce6902a6..7eaa9448 100644 --- a/lab/parser.py +++ b/lab/parser.py @@ -57,8 +57,7 @@ class ParserMain(object): if options.dis or options.chunks: try: bp = ByteParser(filename=filename) - except CoverageException: - _, err, _ = sys.exc_info() + except CoverageException as err: print("%s" % (err,)) return |
