Merge pull request #7 from thefab/flake8_fixes

flake8/pep8 fixes
This commit is contained in:
Johann Dreo 2013-03-23 09:16:56 -07:00
commit add176306a

View file

@ -370,7 +370,7 @@ if __name__ == "__main__":
pattern, color, style, on_stderr, on_groups, as_colormap, as_theme, as_source = __args_parse__(sys.argv, usage) pattern, color, style, on_stderr, on_groups, as_colormap, as_theme, as_source = __args_parse__(sys.argv, usage)
# use the generator: output lines as they come # use the generator: output lines as they come
if as_colormap == True and color != "rainbow": if as_colormap is True and color != "rainbow":
colormap = color.split(",") # replace the colormap by the given colors colormap = color.split(",") # replace the colormap by the given colors
color = "colormap" # use the keyword to switch to colormap instead of list of colors color = "colormap" # use the keyword to switch to colormap instead of list of colors
@ -415,4 +415,3 @@ if __name__ == "__main__":
else: else:
for colored in colorgen(sys.stdin, pattern, color, style, on_groups): for colored in colorgen(sys.stdin, pattern, color, style, on_groups):
write(colored) write(colored)