From 3077d6dca43292095116da9bf037550be2ae4690 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Tue, 3 Oct 2017 13:02:48 -0400 Subject: [PATCH] don't decode bytes to unicode twice Signed-off-by: Doug Hellmann --- git_os_job/cmd.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/git_os_job/cmd.py b/git_os_job/cmd.py index 8d610ac..e6c99aa 100755 --- a/git_os_job/cmd.py +++ b/git_os_job/cmd.py @@ -95,8 +95,7 @@ def main(): sys.stderr.write('Could not get hash for ref %r\n' % ref) return 1 - ref_hash_str = ref_hash.decode('utf8') - url = '%s/%s/%s/' % (args.base, ref_hash_str[:2], ref_hash_str) + url = '%s/%s/%s/' % (args.base, ref_hash[:2], ref_hash) if args.url: print(url)