# HG changeset patch # User Manuel Jacob <me@manueljacob.de> # Date 1583515877 -3600 # Fri Mar 06 18:31:17 2020 +0100 # Node ID 1d0c8cf7fb90bb5addde45d1b0e1bac08fc65852 # Parent cbffa135e3ce0a0f8108c0e4eeccd5b7eedc0f12 py3: un-byteify regex match group dict keys diff --git a/hggit/git_handler.py b/hggit/git_handler.py --- a/hggit/git_handler.py +++ b/hggit/git_handler.py @@ -1701,12 +1701,12 @@ git_match = RE_GIT_URI.match(uri) if git_match: res = git_match.groupdict() - host, port, sepr = res[b'host'], res[b'port'], res[b'sepr'] + host, port, sepr = res['host'], res['port'], res['sepr'] transport = client.TCPGitClient - if b'ssh' in res[b'scheme']: + if b'ssh' in res['scheme']: util.checksafessh(host) transport = client.SSHGitClient - path = res[b'path'] + path = res['path'] if sepr == b'/' and not path.startswith(b'~'): path = b'/' + path # strip trailing slash for heroku-style URLs