Bug #1675967: re patterns pickled with older Python versions can

now be unpickled.
 (backport form rev. 54492)
This commit is contained in:
Žiga Seilnacht 2007-03-21 20:37:39 +00:00
parent 7ed0a65831
commit e5df857cc3
3 changed files with 15 additions and 0 deletions

View file

@ -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