Use proper decode function name.

os.fdecode is not a real thing, os.fsdecode is.

Change-Id: I20b3b6d15b7d5775e1f6f97190d9acc62ca3a4ca
This commit is contained in:
briancurtin 2015-12-08 15:27:52 -06:00
parent f8d71ac5ad
commit 2fbfcf568f

View File

@ -31,7 +31,7 @@ def _guess_cgit_link():
return None return None
else: else:
if six.PY3: if six.PY3:
git_remote = os.fdecode(git_remote) git_remote = os.fsdecode(git_remote)
parsed = parse.urlparse(git_remote) parsed = parse.urlparse(git_remote)
return CGIT_BASE + parsed.path.lstrip('/') return CGIT_BASE + parsed.path.lstrip('/')