Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
89f8b802
Kaydet (Commit)
89f8b802
authored
Ock 16, 2012
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use helpful PyUnicode_IS_ASCII macro
üst
5eda913c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ast.c
Python/ast.c
+1
-1
No files found.
Python/ast.c
Dosyayı görüntüle @
89f8b802
...
@@ -537,7 +537,7 @@ new_identifier(const char* n, PyArena *arena)
...
@@ -537,7 +537,7 @@ new_identifier(const char* n, PyArena *arena)
assert
(
PyUnicode_IS_READY
(
id
));
assert
(
PyUnicode_IS_READY
(
id
));
/* Check whether there are non-ASCII characters in the
/* Check whether there are non-ASCII characters in the
identifier; if so, normalize to NFKC. */
identifier; if so, normalize to NFKC. */
if
(
PyUnicode_
MAX_CHAR_VALUE
((
PyUnicodeObject
*
)
id
)
>=
128
)
{
if
(
PyUnicode_
IS_ASCII
(
id
)
)
{
PyObject
*
m
=
PyImport_ImportModuleNoBlock
(
"unicodedata"
);
PyObject
*
m
=
PyImport_ImportModuleNoBlock
(
"unicodedata"
);
PyObject
*
id2
;
PyObject
*
id2
;
if
(
!
m
)
if
(
!
m
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment