mirror of
https://github.com/josegonzalez/python-github-backup.git
synced 2025-12-07 00:48:01 +01:00
Fix PEP8 violations
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user