]> granicus.if.org Git - python/commit
Issue #28701: Replace PyUnicode_CompareWithASCIIString with _PyUnicode_EqualToASCIISt...
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 16 Nov 2016 08:17:58 +0000 (10:17 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 16 Nov 2016 08:17:58 +0000 (10:17 +0200)
commitf4934ea77da38516731a75fbf9458b248d26dd81
tree9fe19276fac7661f433f86673ff7862663ed7693
parent5ebff7b300448db36d0d0eda7d265caa06fce6d2
Issue #28701: Replace PyUnicode_CompareWithASCIIString with _PyUnicode_EqualToASCIIString.

The latter function is more readable, faster and doesn't raise exceptions.
21 files changed:
Doc/c-api/unicode.rst
Include/unicodeobject.h
Modules/_decimal/_decimal.c
Modules/_elementtree.c
Modules/_io/textio.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