Patchwork D6033: py3: convert return values of inspect.getabsfile() to bytes

login
register
mail settings
Submitter phabricator
Date Feb. 28, 2019, 1:48 a.m.
Message ID <81fe64f418e6588f64748f20fd4f1ad8@localhost.localdomain>
Download mbox | patch
Permalink /patch/38964/
State Not Applicable
Headers show

Comments

phabricator - Feb. 28, 2019, 1:48 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG78027e7bc544: py3: convert return values of inspect.getabsfile() to bytes (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6033?vs=14260&id=14269

REVISION DETAIL
  https://phab.mercurial-scm.org/D6033

AFFECTED FILES
  mercurial/chgserver.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/chgserver.py b/mercurial/chgserver.py
--- a/mercurial/chgserver.py
+++ b/mercurial/chgserver.py
@@ -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))