We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20bc3ad commit 81ea588Copy full SHA for 81ea588
coverage/backward.py
@@ -78,7 +78,7 @@ def exec_code_object(code, global_map):
78
open_source = tokenize.open # pylint: disable=E1101
79
except AttributeError:
80
try:
81
- detect_encoding = tokenize.detect_encoding
+ detect_encoding = tokenize.detect_encoding # pylint: disable=E1101
82
83
def open_source(fname):
84
"""Open a source file the best way."""
@@ -91,7 +91,7 @@ def open_source(fname):
91
detect_encoding().
92
"""
93
buffer = open(fname, 'rb')
94
- encoding, lines = detect_encoding(buffer.readline)
+ encoding, _ = detect_encoding(buffer.readline)
95
buffer.seek(0)
96
text = TextIOWrapper(buffer, encoding, line_buffering=True)
97
text.mode = 'r'
0 commit comments