# HG changeset patch # User Manuel Jacob <me@manueljacob.de> # Date 1583507145 -3600 # Fri Mar 06 16:05:45 2020 +0100 # Node ID 5d87d00d0d6d7652c6c00365aca74293e95cb6f7 # Parent f5180bed98182d077879e21e0ec01d9753b3c786 py3: use pycompat.sysstr diff --git a/hggit/git_handler.py b/hggit/git_handler.py --- a/hggit/git_handler.py +++ b/hggit/git_handler.py @@ -165,7 +165,8 @@ # have to cope with that. As a workaround, try decoding our # (bytes) path to the repo in hg's active encoding and hope # for the best. - gitpath = self.gitdir.decode(encoding.encoding, encoding.encodingmode) + gitpath = self.gitdir.decode(pycompat.sysstr(encoding.encoding), + pycompat.sysstr(encoding.encodingmode)) # make the git data directory if os.path.exists(self.gitdir): return Repo(gitpath)