10000 fix linter warnings · xolox/python-humanfriendly@fe13274 · GitHub
[go: up one dir, main page]

Skip to content

Commit fe13274

Browse files
committed
fix linter warnings
1 parent 05d02d4 commit fe13274

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

humanfriendly/tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -787,8 +787,8 @@ def test_spinner(self):
787787
.replace(ANSI_HIDE_CURSOR, ''))
788788
lines = [line for line in output.split(ANSI_ERASE_LINE) if line]
789789
self.assertTrue(len(lines) > 0)
790-
self.assertTrue(all('test spinner' in l for l in lines))
791-
self.assertTrue(all('%' in l for l in lines))
790+
self.assertTrue(all('test spinner' in line for line in lines))
791+
self.assertTrue(all('%' in line for line in lines))
792792
self.assertEqual(sorted(set(lines)), sorted(lines))
793793

794794
def test_automatic_spinner(self):
@@ -952,7 +952,7 @@ def test_cli(self):
952952
# https://github.com/xolox/python-humanfriendly/issues/28
953953
returncode, output = run_cli(main, '--demo')
954954
assert returncode == 0
955-
lines = [ansi_strip(l) for l in output.splitlines()]
955+
lines = [ansi_strip(line) for line in output.splitlines()]
956956
assert "Text styles:" in lines
957957
assert "Foreground colors:" in lines
958958
assert "Background colors:" in lines

humanfriendly/usage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def render_usage(text):
258258
('\n\n'.join(render_paragraph(p, meta_variables) for p in split_paragraphs(description))).rstrip(),
259259
])
260260
csv_lines = csv_buffer.getvalue().splitlines()
261-
output.append('\n'.join(' %s' % l for l in csv_lines))
261+
output.append('\n'.join(' %s' % line for line in csv_lines))
262262
logger.debug("Rendered output: %s", output)
263263
return '\n\n'.join(trim_empty_lines(o) for o in output)
264264

0 commit comments

Comments
 (0)
0