diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-02-13 14:55:06 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-02-13 14:55:06 -0500 |
commit | 5518bb6c34eabc1d6c09dfb6827a53b6d2def7c1 (patch) | |
tree | 7b343aa27a0b5c4b89c808987a2da81e99c52276 /coverage/misc.py | |
parent | 3098c154042bbf0f7605300f96ef16da560011c3 (diff) | |
download | python-coveragepy-5518bb6c34eabc1d6c09dfb6827a53b6d2def7c1.tar.gz |
Fix some pylint
Diffstat (limited to 'coverage/misc.py')
-rw-r--r-- | coverage/misc.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coverage/misc.py b/coverage/misc.py index 40a9f72..e3723c1 100644 --- a/coverage/misc.py +++ b/coverage/misc.py @@ -45,6 +45,7 @@ if env.TESTING: from contracts import new_contract as raw_new_contract def new_contract(*args, **kwargs): + """A proxy for contracts.new_contract that doesn't mind happening twice.""" try: return raw_new_contract(*args, **kwargs) except ValueError: @@ -63,7 +64,7 @@ else: # pragma: not covered """Dummy no-op implementation of `contract`.""" return lambda func: func - def new_contract(*args, **kwargs): + def new_contract(*args_unused, **kwargs_unused): """Dummy no-op implementation of `new_contract`.""" pass |