DebugClients/Python3/coverage/__init__.py

changeset 29
391dc0bc4ae5
parent 0
de9c2efb9d02
child 3495
fac17a82b431
equal deleted inserted replaced
28:dde24fc7f7ba 29:391dc0bc4ae5
3 Ned Batchelder 3 Ned Batchelder
4 http://nedbatchelder.com/code/coverage 4 http://nedbatchelder.com/code/coverage
5 5
6 """ 6 """
7 7
8 __version__ = "3.0.1" # see detailed history in CHANGES.txt 8 __version__ = "3.2" # see detailed history in CHANGES.txt
9
10 __url__ = "http://nedbatchelder.com/code/coverage"
9 11
10 from .control import coverage 12 from .control import coverage
11 from .data import CoverageData 13 from .data import CoverageData
12 from .cmdline import main, CoverageScript 14 from .cmdline import main, CoverageScript
13 from .misc import CoverageException 15 from .misc import CoverageException
22 # created as needed when one of the module-level functions is called. 24 # created as needed when one of the module-level functions is called.
23 _the_coverage = None 25 _the_coverage = None
24 26
25 def _singleton_method(name): 27 def _singleton_method(name):
26 """Return a function to the `name` method on a singleton `coverage` object. 28 """Return a function to the `name` method on a singleton `coverage` object.
27 29
28 The singleton object is created the first time one of these functions is 30 The singleton object is created the first time one of these functions is
29 called. 31 called.
30 32
31 """ 33 """
32 def wrapper(*args, **kwargs): 34 def wrapper(*args, **kwargs):
33 """Singleton wrapper around a coverage method.""" 35 """Singleton wrapper around a coverage method."""
34 global _the_coverage 36 global _the_coverage
35 if not _the_coverage: 37 if not _the_coverage:

eric ide

mercurial