Skip to content
Snippets Groups Projects
Commit c891a11f authored by Augie Fackler's avatar Augie Fackler
Browse files

basepack: avoid 'rbe' mode in Python 3

Differential Revision: https://phab.mercurial-scm.org/D5598
parent 312afd16
Branches
Tags
No related merge requests found
......@@ -52,6 +52,6 @@
# 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.
......@@ -56,5 +56,6 @@
# 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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment