fix: lint

This commit is contained in:
ziirish 2016-06-09 22:48:52 +02:00
parent f22e7633b8
commit 5b5f5960a1
2 changed files with 4 additions and 3 deletions

View file

@ -595,7 +595,8 @@ class History(Resource):
break
if not color_found:
rand = lambda: random.randint(0, 255)
def rand():
return random.randint(0, 255)
red = rand()
green = rand()
blue = rand()

View file

@ -277,8 +277,8 @@ class Parser(Doc):
res = []
for cli in os.listdir(self.clientconfdir):
full_file = os.path.join(self.clientconfdir, cli)
if (os.path.isfile(full_file) and not cli.startswith('.')
and not cli.endswith('~')):
if (os.path.isfile(full_file) and not cli.startswith('.') and
not cli.endswith('~')):
res.append({
'name': cli,
'value': full_file