diff --git a/pudb/settings.py b/pudb/settings.py index 1418bfc9ad091bf1bcbcd4090d2cc371c0a1d784..18583edcb8474498e9c0fe699af720034dc43c19 100644 --- a/pudb/settings.py +++ b/pudb/settings.py @@ -575,7 +575,7 @@ def load_breakpoints(): except IOError: pass else: - lines.extend([l.strip() for l in rc_file.readlines()]) + lines.extend([line.strip() for line in rc_file.readlines()]) rc_file.close() return parse_breakpoints(lines) diff --git a/pudb/source_view.py b/pudb/source_view.py index 3c01b5779aa2d5faad468ed281e7d019b2edc5d3..7b68fe4ad966e616cbeb4bcc22851a221553b64f 100644 --- a/pudb/source_view.py +++ b/pudb/source_view.py @@ -303,7 +303,7 @@ def format_source(debugger_ui, lines, breakpoints): if subself.current_line: shipout_line() - highlight("".join(l.expandtabs(TABSTOP) for l in lines), + highlight("".join(line.expandtabs(TABSTOP) for line in lines), PythonLexer(stripnl=False), UrwidFormatter()) return result diff --git a/test/test_lowlevel.py b/test/test_lowlevel.py index 9d1eafc2ede78fc4a4a56d7ab2295e79491a9a69..8262de28ed1dfd2a179e9430e1ffd2919b229be6 100644 --- a/test/test_lowlevel.py +++ b/test/test_lowlevel.py @@ -5,7 +5,7 @@ from pudb.py3compat import PY3 def test_detect_encoding_nocookie(): lines = [u'Test Проверка'] - lines = [l.encode('utf-8') for l in lines] + lines = [line.encode('utf-8') for line in lines] encoding, _ = detect_encoding(iter(lines)) assert encoding == 'utf-8' @@ -16,7 +16,7 @@ def test_detect_encoding_cookie(): u'Test', u'Проверка' ] - lines = [l.encode('utf-8') for l in lines] + lines = [line.encode('utf-8') for line in lines] encoding, _ = detect_encoding(iter(lines)) assert encoding == 'utf-8' @@ -27,11 +27,12 @@ def test_decode_lines(): u'Test', u'Проверка', ] - lines = [l.encode('utf-8') for l in unicode_lines] + lines = [line.encode('utf-8') for line in unicode_lines] if PY3: assert unicode_lines == list(decode_lines(iter(lines))) else: - assert [l.decode('utf-8') for l in lines] == list(decode_lines(iter(lines))) + assert [line.decode('utf-8') + for line in lines] == list(decode_lines(iter(lines))) # {{{ remove common indentation