From 1d947b30342163b723c96db563967323535fef45 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Thu, 25 Oct 2012 12:23:11 +0900 Subject: 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 --- color.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'color.py') diff --git a/color.py b/color.py index 9200a298..33bc8779 100644 --- a/color.py +++ b/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) -- cgit v1.2.3-54-g00ecf