# HG changeset patch # User Pulkit Goyal # Date 1551307127 -19800 # Node ID 78027e7bc54426e0b7d5a2c9ba3b428f314ccd1a # Parent c7fc463b8e8e16f6eb24c43aaaa24676241981fd 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 diff -r c7fc463b8e8e -r 78027e7bc544 mercurial/chgserver.py --- 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))