Skip to content

Commit 81ea588

Browse files
committed
Appease the pylint gods
1 parent 20bc3ad commit 81ea588

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coverage/backward.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def exec_code_object(code, global_map):
7878
open_source = tokenize.open # pylint: disable=E1101
7979
except AttributeError:
8080
try:
81-
detect_encoding = tokenize.detect_encoding
81+
detect_encoding = tokenize.detect_encoding # pylint: disable=E1101
8282
except AttributeError:
8383
def open_source(fname):
8484
"""Open a source file the best way."""
@@ -91,7 +91,7 @@ def open_source(fname):
9191
detect_encoding().
9292
"""
9393
buffer = open(fname, 'rb')
94-
encoding, lines = detect_encoding(buffer.readline)
94+
encoding, _ = detect_encoding(buffer.readline)
9595
buffer.seek(0)
9696
text = TextIOWrapper(buffer, encoding, line_buffering=True)
9797
text.mode = 'r'

0 commit comments

Comments
 (0)