summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2011-08-28 15:10:11 -0400
committerNed Batchelder <ned@nedbatchelder.com>2011-08-28 15:10:11 -0400
commit95d68ac40f5038dea3ab674d60547cf8a63cdd73 (patch)
treee57b5dfb748fed42ae3b25d6e9e7dc3f68a42c6f
parent8ade83f4e58cda85312fa05255289eefcf62767b (diff)
downloadpython-coveragepy-95d68ac40f5038dea3ab674d60547cf8a63cdd73.tar.gz
Appease the pylint gods
-rw-r--r--coverage/backward.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/backward.py b/coverage/backward.py
index ef2a774..93cb793 100644
--- a/coverage/backward.py
+++ b/coverage/backward.py
@@ -78,7 +78,7 @@ try:
open_source = tokenize.open # pylint: disable=E1101
except AttributeError:
try:
- detect_encoding = tokenize.detect_encoding
+ detect_encoding = tokenize.detect_encoding # pylint: disable=E1101
except AttributeError:
def open_source(fname):
"""Open a source file the best way."""
@@ -91,7 +91,7 @@ except AttributeError:
detect_encoding().
"""
buffer = open(fname, 'rb')
- encoding, lines = detect_encoding(buffer.readline)
+ encoding, _ = detect_encoding(buffer.readline)
buffer.seek(0)
text = TextIOWrapper(buffer, encoding, line_buffering=True)
text.mode = 'r'