##// END OF EJS Templates
basepack: avoid 'rbe' mode in Python 3...
Augie Fackler -
r41285:c891a11f default
parent child Browse files
Show More
@@ -52,9 +52,10 b' SMALLFANOUTCUTOFF = 2**16 // 8'
52 # loaded the pack list.
52 # loaded the pack list.
53 REFRESHRATE = 0.1
53 REFRESHRATE = 0.1
54
54
55 if pycompat.isposix:
55 if pycompat.isposix and not pycompat.ispy3:
56 # With glibc 2.7+ the 'e' flag uses O_CLOEXEC when opening.
56 # With glibc 2.7+ the 'e' flag uses O_CLOEXEC when opening.
57 # The 'e' flag will be ignored on older versions of glibc.
57 # The 'e' flag will be ignored on older versions of glibc.
58 # Python 3 can't handle the 'e' flag.
58 PACKOPENMODE = 'rbe'
59 PACKOPENMODE = 'rbe'
59 else:
60 else:
60 PACKOPENMODE = 'rb'
61 PACKOPENMODE = 'rb'
General Comments 0
You need to be logged in to leave comments. Login now