mirror of
https://github.com/josegonzalez/python-github-backup.git
synced 2026-04-12 20:45:36 +02:00
Fix PEP8 violations
This commit is contained in:
@@ -69,7 +69,8 @@ def mkdir_p(*args):
|
||||
except OSError as exc: # Python >2.5
|
||||
if exc.errno == errno.EEXIST and os.path.isdir(path):
|
||||
pass
|
||||
else: raise
|
||||
else:
|
||||
raise
|
||||
|
||||
|
||||
def parse_args():
|
||||
@@ -100,7 +101,7 @@ def parse_args():
|
||||
def get_auth(args):
|
||||
auth = None
|
||||
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:
|
||||
auth = base64.b64encode(args.username + ':' + args.password)
|
||||
elif args.username and not args.password:
|
||||
|
||||
Reference in New Issue
Block a user