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
c1935d2a
Kaydet (Commit)
c1935d2a
authored
Nis 25, 2011
tarafından
Jesus Cea
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Revert bb62908896fe, but keep the test
üst
4f711726
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
13 deletions
+6
-13
tokenizer.c
Parser/tokenizer.c
+6
-13
No files found.
Parser/tokenizer.c
Dosyayı görüntüle @
c1935d2a
...
@@ -585,19 +585,12 @@ decoding_fgets(char *s, int size, struct tok_state *tok)
...
@@ -585,19 +585,12 @@ decoding_fgets(char *s, int size, struct tok_state *tok)
if
(
badchar
)
{
if
(
badchar
)
{
/* Need to add 1 to the line number, since this line
/* Need to add 1 to the line number, since this line
has not been counted, yet. */
has not been counted, yet. */
if
(
tok
->
filename
!=
NULL
)
PyErr_Format
(
PyExc_SyntaxError
,
filename
=
PyUnicode_DecodeFSDefault
(
tok
->
filename
);
"Non-UTF-8 code starting with '
\\
x%.2x' "
else
"in file %U on line %i, "
filename
=
PyUnicode_FromString
(
"<file>"
);
"but no encoding declared; "
if
(
filename
!=
NULL
)
{
"see http://python.org/dev/peps/pep-0263/ for details"
,
PyErr_Format
(
PyExc_SyntaxError
,
badchar
,
tok
->
filename
,
tok
->
lineno
+
1
);
"Non-UTF-8 code starting with '
\\
x%.2x' "
"in file %U on line %i, "
"but no encoding declared; "
"see http://python.org/dev/peps/pep-0263/ for details"
,
badchar
,
filename
,
tok
->
lineno
+
1
);
Py_DECREF
(
filename
);
}
return
error_ret
(
tok
);
return
error_ret
(
tok
);
}
}
#endif
#endif
...
...
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