summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-05-07 17:15:57 (GMT)
committerGuido van Rossum <guido@python.org>2007-05-07 17:15:57 (GMT)
commit32c38e7420e3a5b98fbcc01c10e971d784713b62 (patch)
tree75c166b5c1206416d1aa03565ed7f46cc4b529b0 /Modules
parent6cb726a9f24d6bb2ae9d0474b48099bd1f53ee3a (diff)
downloadcpython-32c38e7420e3a5b98fbcc01c10e971d784713b62.zip
cpython-32c38e7420e3a5b98fbcc01c10e971d784713b62.tar.gz
cpython-32c38e7420e3a5b98fbcc01c10e971d784713b62.tar.bz2
Fix some trivial things in cPickle due to the renaming of the string types.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/cPickle.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/Modules/cPickle.c b/Modules/cPickle.c
index 9ce3f65..9e3f8d1 100644
--- a/Modules/cPickle.c
+++ b/Modules/cPickle.c
@@ -2217,13 +2217,11 @@ save(Picklerobject *self, PyObject *args, int pers_save)
}
break;
- case 's':
+ case 's': /* str8, str */
if ((type == &PyString_Type) && (PyString_GET_SIZE(args) < 2)) {
res = save_string(self, args, 0);
goto finally;
}
-
- case 'u':
if ((type == &PyUnicode_Type) && (PyString_GET_SIZE(args) < 2)) {
res = save_unicode(self, args, 0);
goto finally;
@@ -2244,14 +2242,11 @@ save(Picklerobject *self, PyObject *args, int pers_save)
}
switch (type->tp_name[0]) {
- case 's':
+ case 's': /* str8, str */
if (type == &PyString_Type) {
res = save_string(self, args, 1);
goto finally;
}
- break;
-
- case 'u':
if (type == &PyUnicode_Type) {
res = save_unicode(self, args, 1);
goto finally;