Compare commits

...

2 Commits

Author SHA1 Message Date
Jose Diaz-Gonzalez
321414d352 Release version 0.19.2 2018-03-24 01:16:34 -04:00
Jose Diaz-Gonzalez
413d4381cc fix: cleanup pep8 violations 2018-03-24 01:16:28 -04:00
3 changed files with 23 additions and 15 deletions

View File

@@ -1,7 +1,15 @@
Changelog Changelog
========= =========
0.19.1 (2018-03-24) 0.19.2 (2018-03-24)
-------------------
Fix
~~~
- Cleanup pep8 violations. [Jose Diaz-Gonzalez]
0.19.0 (2018-03-24)
------------------- -------------------
- Add additional output for the current request. [Robin Gloster] - Add additional output for the current request. [Robin Gloster]

View File

@@ -303,12 +303,12 @@ def get_auth(args, encode=True):
if platform.system() != 'Darwin': if platform.system() != 'Darwin':
log_error("Keychain arguments are only supported on Mac OSX") log_error("Keychain arguments are only supported on Mac OSX")
try: try:
with open(os.devnull,'w') as devnull: with open(os.devnull, 'w') as devnull:
token = (subprocess.check_output([ token = (subprocess.check_output([
'security','find-generic-password', 'security', 'find-generic-password',
'-s',args.osx_keychain_item_name, '-s', args.osx_keychain_item_name,
'-a',args.osx_keychain_item_account, '-a', args.osx_keychain_item_account,
'-w' ], stderr=devnull).strip()) '-w'], stderr=devnull).strip())
auth = token + ':' + 'x-oauth-basic' auth = token + ':' + 'x-oauth-basic'
except: except:
log_error('No password item matching the provided name and account could be found in the osx keychain.') 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) output_file = "{0}/followers.json".format(account_cwd)
template = "https://{0}/users/{1}/followers".format(get_github_api_host(args), args.user) template = "https://{0}/users/{1}/followers".format(get_github_api_host(args), args.user)
_backup_data(args, _backup_data(args,
"followers", "followers",
template, template,
output_file, output_file,
account_cwd) account_cwd)
if args.include_following or args.include_everything: if args.include_following or args.include_everything:
output_file = "{0}/following.json".format(account_cwd) output_file = "{0}/following.json".format(account_cwd)
template = "https://{0}/users/{1}/following".format(get_github_api_host(args), args.user) template = "https://{0}/users/{1}/following".format(get_github_api_host(args), args.user)
_backup_data(args, _backup_data(args,
"following", "following",
template, template,
output_file, output_file,
account_cwd) account_cwd)
def _backup_data(args, name, template, output_file, output_directory): def _backup_data(args, name, template, output_file, output_directory):

View File

@@ -1 +1 @@
__version__ = '0.19.1' __version__ = '0.19.2'