Even more coding style cleanup
Fixing some more pylint warnings:
W1401: Anomalous backslash in string
W0623: Redefining name 'name' from outer scope
W0702: No exception type(s) specified
E0102: name: function already defined line n
Change-Id: I5afcdb4771ce210390a79981937806e30900a93c
diff --git a/color.py b/color.py
index 9200a29..33bc877 100644
--- a/color.py
+++ b/color.py
@@ -36,7 +36,8 @@
'blink' : 5,
'reverse': 7}
-RESET = "\033[m"
+RESET = "\033[m" # pylint: disable=W1401
+ # backslash is not anomalous
def is_color(s):
return s in COLORS
@@ -51,7 +52,7 @@
if attr >= 0 or fg >= 0 or bg >= 0:
need_sep = False
- code = "\033["
+ code = "\033[" #pylint: disable=W1401
if attr >= 0:
code += chr(ord('0') + attr)