mirror of
https://github.com/python/cpython.git
synced 2025-08-22 01:35:16 +00:00
Bug #1675967: re patterns pickled with older Python versions can
now be unpickled. (backport form rev. 54492)
This commit is contained in:
parent
7ed0a65831
commit
e5df857cc3
3 changed files with 15 additions and 0 deletions
|
@ -8,3 +8,6 @@ warnings.warn("The sre module is deprecated, please import re.",
|
|||
|
||||
from re import *
|
||||
from re import __all__
|
||||
|
||||
# old pickles expect the _compile() reconstructor in this module
|
||||
from re import _compile
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue