# HG changeset patch # User Pulkit Goyal # Date 2019-02-27 22:38:47 # 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 --git a/mercurial/chgserver.py b/mercurial/chgserver.py --- a/mercurial/chgserver.py +++ b/mercurial/chgserver.py @@ -140,7 +140,7 @@ def _getmtimepaths(ui): 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))