diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-05-11 08:25:28 +0000 |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-05-11 08:25:28 +0000 |
commit | 10da33fa2dab0934f279c236cdb2a63b7e417444 (patch) | |
tree | 7c1cee2a15dc7929950b8ec27f9e25fad5e4e842 /Lib/re.py | |
parent | 166cc53cbfc99059f92d085bcbe2f9d89f35c853 (diff) | |
download | cpython-10da33fa2dab0934f279c236cdb2a63b7e417444.tar.gz |
Added module stub for copy_reg renaming in 3.0.
Renamed copy_reg to copyreg in the standard library, to avoid
spurious warnings and ease later merging to py3k branch. Public
documentation remains intact.
Diffstat (limited to 'Lib/re.py')
-rw-r--r-- | Lib/re.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -278,12 +278,12 @@ def _subx(pattern, template): # register myself for pickling -import copy_reg +import copyreg def _pickle(p): return _compile, (p.pattern, p.flags) -copy_reg.pickle(_pattern_type, _pickle, _compile) +copyreg.pickle(_pattern_type, _pickle, _compile) # -------------------------------------------------------------------- # experimental stuff (see python-dev discussions for details) |