summaryrefslogtreecommitdiff
path: root/coverage/misc.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-05-23 07:37:35 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-05-23 07:37:35 -0400
commit8ce8a504a49ee57d769405ae401bf4129b3d3341 (patch)
tree4b08d40b48e9b0e1f8fd5f1dc293981c52900faa /coverage/misc.py
parent012b122d94ebe235d1056340bd48eb28c57a859d (diff)
downloadpython-coveragepy-8ce8a504a49ee57d769405ae401bf4129b3d3341.tar.gz
Pylint weeding
Diffstat (limited to 'coverage/misc.py')
-rw-r--r--coverage/misc.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/coverage/misc.py b/coverage/misc.py
index 6131ec2..0dad055 100644
--- a/coverage/misc.py
+++ b/coverage/misc.py
@@ -11,10 +11,8 @@ from coverage.backward import string_class, to_bytes, unicode_class
# Use PyContracts for assertion testing on parameters and returns, but only if
# we are running our own test suite.
-contract = None
-
if env.TESTING:
- from contracts import contract
+ from contracts import contract # pylint: disable=unused-import
from contracts import new_contract
# Define contract words that PyContract doesn't have.
@@ -25,7 +23,7 @@ if env.TESTING:
else:
# We aren't using real PyContracts, so just define a no-op decorator as a
# stunt double.
- def contract(**unused): # pylint: disable=function-redefined
+ def contract(**unused):
"""Dummy no-op implementation of `contract`."""
return lambda func: func