From 81ea588e932821af8e05eb211923fb0fbf267ca1 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 28 Aug 2011 15:10:11 -0400 Subject: Appease the pylint gods --- coverage/backward.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'coverage/backward.py') diff --git a/coverage/backward.py b/coverage/backward.py index ef2a7743..93cb793a 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' -- cgit v1.2.1