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
--- 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))