diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-20 18:48:36 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-20 18:48:36 (GMT) |
commit | 4ead7c7be8089de7cab5db7d2a75e6bec5b55f10 (patch) | |
tree | 7917a647fd0e2bf4e29c6ce5f0624de1f52b0c55 /Objects/unicodeobject.c | |
parent | 2b979bfa3c27636fe298b7c5d8f17354bd2b566c (diff) | |
download | cpython-4ead7c7be8089de7cab5db7d2a75e6bec5b55f10.zip cpython-4ead7c7be8089de7cab5db7d2a75e6bec5b55f10.tar.gz cpython-4ead7c7be8089de7cab5db7d2a75e6bec5b55f10.tar.bz2 |
PyObject_Str() ensures that the result string is ready
and check the string consistency.
_PyUnicode_CheckConsistency() doesn't check the hash anymore. It should be
possible to call this function even if hash(str) was already called.
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 7aa5ff0..1e44357 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -408,8 +408,6 @@ _PyUnicode_CheckConsistency(PyObject *op, int check_content) assert(maxchar <= 0x10FFFF); } } - if (check_content && !unicode_is_singleton(op)) - assert(ascii->hash == -1); return 1; } #endif |