From 413d4381cc2bc554060a2e8764105098a10a86bd Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 24 Mar 2018 01:16:28 -0400 Subject: [PATCH] fix: cleanup pep8 violations --- bin/github-backup | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/bin/github-backup b/bin/github-backup index d6a17e6..2603ad1 100755 --- a/bin/github-backup +++ b/bin/github-backup @@ -303,12 +303,12 @@ def get_auth(args, encode=True): if platform.system() != 'Darwin': log_error("Keychain arguments are only supported on Mac OSX") try: - with open(os.devnull,'w') as devnull: + with open(os.devnull, 'w') as devnull: token = (subprocess.check_output([ - 'security','find-generic-password', - '-s',args.osx_keychain_item_name, - '-a',args.osx_keychain_item_account, - '-w' ], stderr=devnull).strip()) + 'security', 'find-generic-password', + '-s', args.osx_keychain_item_name, + '-a', args.osx_keychain_item_account, + '-w'], stderr=devnull).strip()) auth = token + ':' + 'x-oauth-basic' except: log_error('No password item matching the provided name and account could be found in the osx keychain.') @@ -932,19 +932,19 @@ def backup_account(args, output_directory): output_file = "{0}/followers.json".format(account_cwd) template = "https://{0}/users/{1}/followers".format(get_github_api_host(args), args.user) _backup_data(args, - "followers", - template, - output_file, - account_cwd) + "followers", + template, + output_file, + account_cwd) if args.include_following or args.include_everything: output_file = "{0}/following.json".format(account_cwd) template = "https://{0}/users/{1}/following".format(get_github_api_host(args), args.user) _backup_data(args, - "following", - template, - output_file, - account_cwd) + "following", + template, + output_file, + account_cwd) def _backup_data(args, name, template, output_file, output_directory):