]> granicus.if.org Git - python/commit
Issue #28701: Replace PyUnicode_CompareWithASCIIString with _PyUnicode_EqualToASCIISt...
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 16 Nov 2016 08:19:20 +0000 (10:19 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 16 Nov 2016 08:19:20 +0000 (10:19 +0200)
commit3b73ea127892d0e1f9d8f12f88e4f9c0ba0b89b1
treea1a58a83f9d60f7d5d02e5d116bb76ee13c42254
parent21060105d99a9153db44dd88eb750965392fd966
parentf4934ea77da38516731a75fbf9458b248d26dd81
Issue #28701: Replace PyUnicode_CompareWithASCIIString with _PyUnicode_EqualToASCIIString.

The latter function is more readable, faster and doesn't raise exceptions.
22 files changed:
Doc/c-api/unicode.rst
Include/unicodeobject.h
Modules/_decimal/_decimal.c
Modules/_elementtree.c
Modules/_io/textio.c
Modules/_io/winconsoleio.c
Modules/_lsprof.c
Modules/_pickle.c
Modules/_sqlite/connection.c
Modules/_testcapimodule.c
Modules/pyexpat.c
Objects/longobject.c
Objects/moduleobject.c
Objects/typeobject.c
Objects/unicodeobject.c
Python/_warnings.c
Python/ast.c
Python/compile.c
Python/future.c
Python/getargs.c
Python/import.c
Python/symtable.c