Mercurial > public > mercurial-scm > hg-stable
diff mercurial/chgserver.py @ 41821:78027e7bc544
py3: convert return values of inspect.getabsfile() to bytes
It's weird that python docs for inspect does not mention getabsfile().
Differential Revision: https://phab.mercurial-scm.org/D6033
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Thu, 28 Feb 2019 04:08:47 +0530 |
parents | cf8677cd7286 |
children | bce2356ece68 |
line wrap: on
line diff
--- a/mercurial/chgserver.py Thu Feb 28 03:51:06 2019 +0530 +++ b/mercurial/chgserver.py Thu Feb 28 04:08:47 2019 +0530 @@ -140,7 +140,7 @@ files = [pycompat.sysexecutable] for m in modules: try: - files.append(inspect.getabsfile(m)) + files.append(pycompat.fsencode(inspect.getabsfile(m))) except TypeError: pass return sorted(set(files))