Mercurial > cpython-lru_cache-weakref
comparison Objects/unicodeobject.c @ 72635:61de28fa5537
fix parens
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Mon, 03 Oct 2011 19:37:29 -0400 |
| parents | 64495ad8aa54 |
| children | ab5086539ab9 |
comparison
equal
deleted
inserted
replaced
| 72634:64495ad8aa54 | 72635:61de28fa5537 |
|---|---|
| 1312 { | 1312 { |
| 1313 if (Py_REFCNT(unicode) != 1) | 1313 if (Py_REFCNT(unicode) != 1) |
| 1314 return 0; | 1314 return 0; |
| 1315 if (PyUnicode_CHECK_INTERNED(unicode)) | 1315 if (PyUnicode_CHECK_INTERNED(unicode)) |
| 1316 return 0; | 1316 return 0; |
| 1317 assert (unicode != unicode_empty); | 1317 assert(unicode != unicode_empty); |
| 1318 #ifdef Py_DEBUG | 1318 #ifdef Py_DEBUG |
| 1319 if (_PyUnicode_KIND(unicode) != PyUnicode_WCHAR_KIND | 1319 if (_PyUnicode_KIND(unicode) != PyUnicode_WCHAR_KIND |
| 1320 && PyUnicode_GET_LENGTH(unicode) == 1) | 1320 && PyUnicode_GET_LENGTH(unicode) == 1) |
| 1321 { | 1321 { |
| 1322 Py_UCS4 ch = PyUnicode_READ_CHAR(unicode, 0); | 1322 Py_UCS4 ch = PyUnicode_READ_CHAR(unicode, 0); |
