[Updated] D12273: setup: inline os.fsdecode now that we're done with Python 2

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Wed Mar 2 16:27:45 UTC 2022


Closed by commit rHGa7d5854be738: setup: inline os.fsdecode now that we're done with Python 2 (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D12273?vs=32364&id=32381

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D12273/new/

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

AFFECTED FILES
  setup.py

CHANGE DETAILS

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -741,12 +741,9 @@
 
                 # Copy the pythonXY.dll next to the binary so that it runs
                 # without tampering with PATH.
-                fsdecode = lambda x: x
-                if sys.version_info[0] >= 3:
-                    fsdecode = os.fsdecode
                 dest = os.path.join(
                     os.path.dirname(self.hgtarget),
-                    fsdecode(dllbasename),
+                    os.fsdecode(dllbasename),
                 )
 
                 if not os.path.exists(dest):



To: durin42, indygreg, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220302/4f274687/attachment-0002.html>


More information about the Mercurial-patches mailing list