Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: third_party/coverage-3.7.1/__main__.py

Issue 225633007: Upgrade to coverage 3.7.1 and have it auto-build itself on first use. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: sigh our imports are a mess Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 """Be able to execute coverage.py by pointing Python at a working tree."""
2
3 import runpy, os
4
5 PKG = 'coverage'
6
7 try:
8 run_globals = runpy.run_module(PKG, run_name='__main__', alter_sys=True)
9 executed = os.path.splitext(os.path.basename(run_globals['__file__']))[0]
10 if executed != '__main__': # For Python 2.5 compatibility
11 raise ImportError(
12 'Incorrectly executed %s instead of __main__' % executed
13 )
14 except ImportError: # For Python 2.6 compatibility
15 runpy.run_module('%s.__main__' % PKG, run_name='__main__', alter_sys=True)
OLDNEW
« no previous file with comments | « third_party/coverage-3.7.1/README.txt ('k') | third_party/coverage-3.7.1/coverage.egg-info/PKG-INFO » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698