pylint fixes

This commit is contained in:
Justin Findlay 2014-12-27 14:11:01 -07:00
parent 2d93867c3e
commit 415f0785db
2 changed files with 4 additions and 4 deletions

View file

@ -145,10 +145,11 @@ class TextFormat(object):
def qualify_int(i):
if isinstance(i, int):
return i%256 # set i to unit element of its equivalence class
return i % 256 # set i to base element of its equivalence class
def qualify_triple_int(t):
if isinstance(t, (list, tuple)) and len(t) == 3:
return qualify_int(i)
return qualify_int(t[0]), qualify_int(t[1]), qualify_int(t[2])
if kwargs.get('x', None) is not None:
self.codes.extend((codes['extended'], '5', qualify_int(kwargs['x'])))
@ -167,7 +168,6 @@ class TextFormat(object):
c=';'.join(self.codes),
s=graph_suffix)
def __call__(self, text, reset=True):
'''
Format :param text: by prefixing `self.sequence` and suffixing the

View file

@ -49,7 +49,7 @@ def run(command):
hashes.add(has)
if len(hashes) > 1:
print('{0}Command: {1} gave inconsistent returns{2}'.format(
colors['LIGHT_RED']
colors['LIGHT_RED'],
command,
colors['ENDC']
))