File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -787,8 +787,8 @@ def test_spinner(self):
787
787
.replace (ANSI_HIDE_CURSOR , '' ))
788
788
lines = [line for line in output .split (ANSI_ERASE_LINE ) if line ]
789
789
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 ))
792
792
self .assertEqual (sorted (set (lines )), sorted (lines ))
793
793
794
794
def test_automatic_spinner (self ):
@@ -952,7 +952,7 @@ def test_cli(self):
952
952
# https://github.com/xolox/python-humanfriendly/issues/28
953
953
returncode , output = run_cli (main , '--demo' )
954
954
assert returncode == 0
955
- lines = [ansi_strip (l ) for l in output .splitlines ()]
955
+ lines = [ansi_strip (line ) for line in output .splitlines ()]
956
956
assert "Text styles:" in lines
957
957
assert "Foreground colors:" in lines
958
958
assert "Background colors:" in lines
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ def render_usage(text):
258
258
('\n \n ' .join (render_paragraph (p , meta_variables ) for p in split_paragraphs (description ))).rstrip (),
259
259
])
260
260
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 ))
262
262
logger .debug ("Rendered output: %s" , output )
263
263
return '\n \n ' .join (trim_empty_lines (o ) for o in output )
264
264
You can’t perform that action at this time.
0 commit comments