diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2011-04-16 20:45:34 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2011-04-16 20:45:34 -0400 |
commit | 40ac04235ae802caa74215157cab3f0b77c48e8d (patch) | |
tree | a8ec07f2a91c0d85f1d3fb35024545971d5699bf /__main__.py | |
parent | 174cb637804a7d63484b6b280068324e62a9f61f (diff) | |
download | python-coveragepy-git-40ac04235ae802caa74215157cab3f0b77c48e8d.tar.gz |
Push some characters around.
Diffstat (limited to '__main__.py')
-rw-r--r-- | __main__.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/__main__.py b/__main__.py index 7ad6d737..b11dafce 100644 --- a/__main__.py +++ b/__main__.py @@ -1,8 +1,6 @@ -"""Be able to execute coverage.py by pointing Python at the repository's -directory.""" -import os -import runpy +"""Be able to execute coverage.py by pointing Python at a working tree.""" +import runpy, os PKG = 'coverage' @@ -10,7 +8,8 @@ try: run_globals = runpy.run_module(PKG, run_name='__main__', alter_sys=True) executed = os.path.splitext(os.path.basename(run_globals['__file__']))[0] if executed != '__main__': # For Python 2.5 compatibility - raise ImportError('Incorrectly executed %s instead of __main__' % - executed) + raise ImportError( + 'Incorrectly executed %s instead of __main__' % executed + ) except ImportError: # For Python 2.6 compatibility runpy.run_module('%s.__main__' % PKG, run_name='__main__', alter_sys=True) |