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
This commit is contained in:
parent
2d113f3546
commit
1d947b3034
12 changed files with 24 additions and 24 deletions
5
color.py
5
color.py
|
@ -36,7 +36,8 @@ ATTRS = {None :-1,
|
|||
'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 @@ def _Color(fg = None, bg = None, attr = None):
|
|||
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue