mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
pylint fixes
This commit is contained in:
parent
2d93867c3e
commit
415f0785db
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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']
|
||||
))
|
||||
|
|
Loading…
Add table
Reference in a new issue