changeset 48898:a98e32e5fca1

windows: remove conditional for Python 3 Differential Revision: https://phab.mercurial-scm.org/D12301
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 21 Feb 2022 10:36:44 -0700
parents 10839394f39b
children 563eb25e079b
files mercurial/windows.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/windows.py	Mon Feb 21 10:35:42 2022 -0700
+++ b/mercurial/windows.py	Mon Feb 21 10:36:44 2022 -0700
@@ -162,8 +162,7 @@
 
         # PyFile_FromFd() ignores the name, and seems to report fp.name as the
         # underlying file descriptor.
-        if pycompat.ispy3:
-            fp = fdproxy(name, fp)
+        fp = fdproxy(name, fp)
 
         # The position when opening in append mode is implementation defined, so
         # make it consistent with other platforms, which position at EOF.