DebugClients/Python3/coverage/control.py

changeset 32
01f04fbc1842
parent 29
391dc0bc4ae5
child 3495
fac17a82b431
equal deleted inserted replaced
31:744cd0b4b8cd 32:01f04fbc1842
16 class coverage(object): 16 class coverage(object):
17 """Programmatic access to Coverage. 17 """Programmatic access to Coverage.
18 18
19 To use:: 19 To use::
20 20
21 from coverage import coverage 21 from . import coverage
22 22
23 cov = coverage() 23 cov = coverage()
24 cov.start() 24 cov.start()
25 #.. blah blah (run your code) blah blah .. 25 #.. blah blah (run your code) blah blah ..
26 cov.stop() 26 cov.stop()
50 50
51 If `branch` is true, then branch coverage will be measured in addition 51 If `branch` is true, then branch coverage will be measured in addition
52 to the usual statement coverage. 52 to the usual statement coverage.
53 53
54 """ 54 """
55 from coverage import __version__ 55 from . import __version__
56 56
57 self.cover_pylib = cover_pylib 57 self.cover_pylib = cover_pylib
58 self.auto_data = auto_data 58 self.auto_data = auto_data
59 self.atexit_registered = False 59 self.atexit_registered = False
60 60

eric ide

mercurial