mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #18050: Fixed an incompatibility of the re module with Python 3.3.0
binaries.
This commit is contained in:
parent
2a97cee5ed
commit
c8bf95cfc5
4 changed files with 8 additions and 3 deletions
|
@ -13,7 +13,6 @@
|
||||||
import _sre, sys
|
import _sre, sys
|
||||||
import sre_parse
|
import sre_parse
|
||||||
from sre_constants import *
|
from sre_constants import *
|
||||||
from _sre import MAXREPEAT
|
|
||||||
|
|
||||||
assert _sre.MAGIC == MAGIC, "SRE module mismatch"
|
assert _sre.MAGIC == MAGIC, "SRE module mismatch"
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,11 @@
|
||||||
|
|
||||||
MAGIC = 20031017
|
MAGIC = 20031017
|
||||||
|
|
||||||
from _sre import MAXREPEAT
|
try:
|
||||||
|
from _sre import MAXREPEAT
|
||||||
|
except ImportError:
|
||||||
|
import _sre
|
||||||
|
MAXREPEAT = _sre.MAXREPEAT = 65535
|
||||||
|
|
||||||
# SRE standard exception (access as sre.error)
|
# SRE standard exception (access as sre.error)
|
||||||
# should this really be here?
|
# should this really be here?
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from sre_constants import *
|
from sre_constants import *
|
||||||
from _sre import MAXREPEAT
|
|
||||||
|
|
||||||
SPECIAL_CHARS = ".\\[{()*+?^$|"
|
SPECIAL_CHARS = ".\\[{()*+?^$|"
|
||||||
REPEAT_CHARS = "*+?{"
|
REPEAT_CHARS = "*+?{"
|
||||||
|
|
|
@ -68,6 +68,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #18050: Fixed an incompatibility of the re module with Python 3.3.0
|
||||||
|
binaries.
|
||||||
|
|
||||||
- Issue #19037: The mailbox module now makes all changes to maildir files
|
- Issue #19037: The mailbox module now makes all changes to maildir files
|
||||||
before moving them into place, to avoid race conditions with other programs
|
before moving them into place, to avoid race conditions with other programs
|
||||||
that may be accessing the maildir directory.
|
that may be accessing the maildir directory.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue