summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-04-09 18:54:09 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-04-09 18:54:09 (GMT)
commitfe146ea3c72b573974dfc2e8e6a60534f9e612a7 (patch)
treee7e299f053f1f036f12a2c9d78def3e9be988b57 /Objects/unicodeobject.c
parentb5588c3f94b351c7c57fd7d26a305200b5a6c45f (diff)
parentf51c384a0af9cc233b52ea98313e312dcb414dce (diff)
downloadcpython-fe146ea3c72b573974dfc2e8e6a60534f9e612a7.zip
cpython-fe146ea3c72b573974dfc2e8e6a60534f9e612a7.tar.gz
cpython-fe146ea3c72b573974dfc2e8e6a60534f9e612a7.tar.bz2
merge 2.7 release branch
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 0ee61c9..3dfbea1 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -6538,7 +6538,9 @@ unicode_hash(PyUnicodeObject *self)
register Py_UNICODE *p;
register long x;
+#ifdef Py_DEBUG
assert(_Py_HashSecret_Initialized);
+#endif
if (self->hash != -1)
return self->hash;
len = PyUnicode_GET_SIZE(self);