summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-03-22 12:50:40 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-03-22 12:50:40 (GMT)
commit808fc0a0eea56dd4ef2fa9f9dee00ef0c20760f2 (patch)
tree9a5ed66ce46fb860e57a4bbacdc8ac66357bd478 /Objects
parent0477bf3a934b9e959ce4a64f25ce24310797d50e (diff)
downloadcpython-808fc0a0eea56dd4ef2fa9f9dee00ef0c20760f2.zip
cpython-808fc0a0eea56dd4ef2fa9f9dee00ef0c20760f2.tar.gz
cpython-808fc0a0eea56dd4ef2fa9f9dee00ef0c20760f2.tar.bz2
Merged revisions 79278,79280 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r79278 | victor.stinner | 2010-03-22 13:24:37 +0100 (lun., 22 mars 2010) | 2 lines Issue #1583863: An unicode subclass can now override the __str__ method ........ r79280 | victor.stinner | 2010-03-22 13:36:28 +0100 (lun., 22 mars 2010) | 5 lines Fix the NEWS about my last commit: an unicode subclass can now override the __unicode__ method (and not the __str__ method). Simplify also the testcase. ........
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 3ee90b5..28b8c66 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -9124,7 +9124,7 @@ PyObject *PyUnicode_Format(PyObject *format,
case 's':
case 'r':
case 'a':
- if (PyUnicode_Check(v) && c == 's') {
+ if (PyUnicode_CheckExact(v) && c == 's') {
temp = v;
Py_INCREF(temp);
}