Mercurial > hg
changeset 41816: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 | c7fc463b8e8e |
children | 169c386cc9d8 |
files | mercurial/chgserver.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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))