changeset 41249:c891a11ffe27

basepack: avoid 'rbe' mode in Python 3 Differential Revision: https://phab.mercurial-scm.org/D5598
author Augie Fackler <augie@google.com>
date Wed, 16 Jan 2019 10:56:15 -0500
parents 312afd164009
children 8a6995513d9a
files hgext/remotefilelog/basepack.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/remotefilelog/basepack.py	Wed Jan 16 10:55:42 2019 -0500
+++ b/hgext/remotefilelog/basepack.py	Wed Jan 16 10:56:15 2019 -0500
@@ -52,9 +52,10 @@
 # loaded the pack list.
 REFRESHRATE = 0.1
 
-if pycompat.isposix:
+if pycompat.isposix and not pycompat.ispy3:
     # With glibc 2.7+ the 'e' flag uses O_CLOEXEC when opening.
     # The 'e' flag will be ignored on older versions of glibc.
+    # Python 3 can't handle the 'e' flag.
     PACKOPENMODE = 'rbe'
 else:
     PACKOPENMODE = 'rb'