]> granicus.if.org Git - python/commit
Simplify PyUnicode_MAX_CHAR_VALUE
authorVictor Stinner <victor.stinner@haypocalc.com>
Wed, 12 Oct 2011 23:12:01 +0000 (01:12 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Wed, 12 Oct 2011 23:12:01 +0000 (01:12 +0200)
commit8813104e5340ca4f1a6988b33cc551e009bae16b
tree2fe0c3ca4aefcd30dcb8c700934e3e0023dec76e
parent9e7a1bcfd6737de148dd99c953e1d079ad3f239a
Simplify PyUnicode_MAX_CHAR_VALUE

Use PyUnicode_IS_ASCII instead of PyUnicode_IS_COMPACT_ASCII, so the following
test can be removed:

   PyUnicode_DATA(op) == (((PyCompactUnicodeObject *)(op))->utf8)
Include/unicodeobject.h