1. Ned Batchelder
  2. coverage.py

Source

coverage.py / coverage / execfile.py

Diff from to

File coverage/execfile.py

  • Ignore whitespace
             package = __import__(packagename, glo, loc, ['__path__'])
             searchpath = package.__path__
             openfile, pathname, _ = imp.find_module(name, searchpath)
-    except ImportError:
-        _, err, _ = sys.exc_info()
+    except ImportError as err:
         raise NoSource(str(err))
     finally:
         if openfile: