diff Objects/bytesobject.c @ 76191:64bb1d258322 3.1

fix build without Py_DEBUG and DNDEBUG (closes #14509)
author Benjamin Peterson <benjamin@python.org>
date Mon, 09 Apr 2012 14:53:07 -0400
parents Objects/stringobject.c@23ab586c427a
children 5168483316b5
line wrap: on
line diff
--- a/Objects/bytesobject.c	Fri Apr 06 13:17:30 2012 -0400
+++ b/Objects/bytesobject.c	Mon Apr 09 14:53:07 2012 -0400
@@ -896,7 +896,9 @@
     register unsigned char *p;
     register long x;
 
+#ifdef Py_DEBUG
     assert(_Py_HashSecret_Initialized);
+#endif
     if (a->ob_shash != -1)
         return a->ob_shash;
     len = Py_SIZE(a);