From: Guido van Rossum Date: Mon, 7 May 2007 17:15:57 +0000 (+0000) Subject: Fix some trivial things in cPickle due to the renaming of the string types. X-Git-Tag: v3.0a1~1002 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32c38e7420e3a5b98fbcc01c10e971d784713b62;p=python Fix some trivial things in cPickle due to the renaming of the string types. --- diff --git a/Modules/cPickle.c b/Modules/cPickle.c index 9ce3f651c4..9e3f8d18b5 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;