mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Remove erroneous and confusing comment -- sre patterns *can* be
pickled and we do *not* expect exceptions from either pickle or cPickle.
This commit is contained in:
parent
73f0a4ecd7
commit
baefcebb55
1 changed files with 2 additions and 2 deletions
|
|
@ -264,7 +264,7 @@ try:
|
|||
s = pickle.dumps(pat)
|
||||
pat = pickle.loads(s)
|
||||
except:
|
||||
print TestFailed, 're module pickle' # expected
|
||||
print TestFailed, 're module pickle'
|
||||
|
||||
try:
|
||||
import cPickle
|
||||
|
|
@ -272,7 +272,7 @@ try:
|
|||
s = cPickle.dumps(pat)
|
||||
pat = cPickle.loads(s)
|
||||
except:
|
||||
print TestFailed, 're module cPickle' # expected
|
||||
print TestFailed, 're module cPickle'
|
||||
|
||||
# constants
|
||||
test(r"""sre.I""", sre.IGNORECASE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue