From 71b4ea5a600079c126058b6f007990f491219471 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 2 Feb 2017 16:24:38 +0530 Subject: [PATCH] oops --- publish.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/publish.py b/publish.py index 8e57516c5..c42474935 100755 --- a/publish.py +++ b/publish.py @@ -202,7 +202,7 @@ class GitHub(Base): # {{{ def fail(self, r, msg): print(msg, ' Status Code: %s' % r.status_code, file=sys.stderr) print("JSON from response:", file=sys.stderr) - pprint(dict(r.json()), stream=sys.stderr) + pprint.pprint(dict(r.json()), stream=sys.stderr) raise SystemExit(1) def already_exists(self, r): @@ -263,14 +263,13 @@ def run_upload(args): os.path.join(build_path, 'build', f.format(version)): desc for f, desc in { 'osx/dist/kitty-{}.dmg': 'macOS dmg', - } + }.items() } for f in files: if not os.path.exists(f): raise SystemExit('The installer {} does not exist'.format(f)) gd = get_github_data() - gh = GitHub(files, appname, version, 'kovidgoyal', gd['username'], - gd['password']) + gh = GitHub(files, appname, version, gd['username'], gd['password']) gh()