mercurial/chgserver.py
changeset 41816 78027e7bc544
parent 41285 cf8677cd7286
child 41828 bce2356ece68
--- 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))