diff options
Diffstat (limited to 'coverage/parser.py')
-rw-r--r-- | coverage/parser.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/coverage/parser.py b/coverage/parser.py index 044839d8..a5ad2f5c 100644 --- a/coverage/parser.py +++ b/coverage/parser.py @@ -14,7 +14,7 @@ from coverage import env from coverage.bytecode import code_objects from coverage.debug import short_stack from coverage.exceptions import NoSource, NotPython, _StopEverything -from coverage.misc import contract, join_regex, new_contract, nice_pair +from coverage.misc import contract, join_regex, nice_pair from coverage.phystokens import generate_tokens @@ -603,11 +603,6 @@ class ArcStart(collections.namedtuple("Arc", "lineno, cause")): return super().__new__(cls, lineno, cause) -# Define contract words that PyContract doesn't have. -# ArcStarts is for a list or set of ArcStart's. -new_contract('ArcStarts', lambda seq: all(isinstance(x, ArcStart) for x in seq)) - - class NodeList: """A synthetic fictitious node, containing a sequence of nodes. |