Fix PEP8 violations

This commit is contained in:
Jose Diaz-Gonzalez
2014-09-22 01:02:09 -04:00
parent 5719a947f9
commit aa4201d102

View File

@@ -69,7 +69,8 @@ def mkdir_p(*args):
except OSError as exc: # Python >2.5 except OSError as exc: # Python >2.5
if exc.errno == errno.EEXIST and os.path.isdir(path): if exc.errno == errno.EEXIST and os.path.isdir(path):
pass pass
else: raise else:
raise
def parse_args(): def parse_args():
@@ -100,7 +101,7 @@ def parse_args():
def get_auth(args): def get_auth(args):
auth = None auth = None
if args.token: if args.token:
auth = base64.b64encode(args.token + ':'+ 'x-oauth-basic') auth = base64.b64encode(args.token + ':' + 'x-oauth-basic')
elif args.username and args.password: elif args.username and args.password:
auth = base64.b64encode(args.username + ':' + args.password) auth = base64.b64encode(args.username + ':' + args.password)
elif args.username and not args.password: elif args.username and not args.password: