commit | 95affc44495806a540f4d997d13361cc388b1a7e | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Mon Mar 22 12:24:37 2010 +0000 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Mon Mar 22 12:24:37 2010 +0000 |
tree | eb554a0bbbf05e8570190b42d877c1ae31c68a81 | |
parent | eef159bd176ffeaae7cdc8450e3d6168fbfe4a59 [diff] [blame] |
Issue #1583863: An unicode subclass can now override the __str__ method
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 113a460..82af3a2 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -8466,7 +8466,7 @@ case 's': case 'r': - if (PyUnicode_Check(v) && c == 's') { + if (PyUnicode_CheckExact(v) && c == 's') { temp = v; Py_INCREF(temp); }