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
2f2ed1f3
Kaydet (Commit)
2f2ed1f3
authored
Eki 16, 2010
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix ast_error_finish() and err_input(): filename can be NULL
Fix my previous commit (r85569).
üst
4c7c8c30
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
ast.c
Python/ast.c
+6
-1
pythonrun.c
Python/pythonrun.c
+6
-1
No files found.
Python/ast.c
Dosyayı görüntüle @
2f2ed1f3
...
@@ -131,7 +131,12 @@ ast_error_finish(const char *filename)
...
@@ -131,7 +131,12 @@ ast_error_finish(const char *filename)
Py_INCREF
(
Py_None
);
Py_INCREF
(
Py_None
);
loc
=
Py_None
;
loc
=
Py_None
;
}
}
filename_obj
=
PyUnicode_DecodeFSDefault
(
filename
);
if
(
filename
!=
NULL
)
filename_obj
=
PyUnicode_DecodeFSDefault
(
filename
);
else
{
Py_INCREF
(
Py_None
);
filename_obj
=
Py_None
;
}
if
(
filename_obj
!=
NULL
)
if
(
filename_obj
!=
NULL
)
tmp
=
Py_BuildValue
(
"(NlOO)"
,
filename_obj
,
lineno
,
offset
,
loc
);
tmp
=
Py_BuildValue
(
"(NlOO)"
,
filename_obj
,
lineno
,
offset
,
loc
);
else
else
...
...
Python/pythonrun.c
Dosyayı görüntüle @
2f2ed1f3
...
@@ -2054,7 +2054,12 @@ err_input(perrdetail *err)
...
@@ -2054,7 +2054,12 @@ err_input(perrdetail *err)
errtext
=
PyUnicode_DecodeUTF8
(
err
->
text
,
strlen
(
err
->
text
),
errtext
=
PyUnicode_DecodeUTF8
(
err
->
text
,
strlen
(
err
->
text
),
"replace"
);
"replace"
);
}
}
filename
=
PyUnicode_DecodeFSDefault
(
err
->
filename
);
if
(
err
->
filename
!=
NULL
)
filename
=
PyUnicode_DecodeFSDefault
(
err
->
filename
);
else
{
Py_INCREF
(
Py_None
);
filename
=
Py_None
;
}
if
(
filename
!=
NULL
)
if
(
filename
!=
NULL
)
v
=
Py_BuildValue
(
"(NiiN)"
,
filename
,
v
=
Py_BuildValue
(
"(NiiN)"
,
filename
,
err
->
lineno
,
err
->
offset
,
errtext
);
err
->
lineno
,
err
->
offset
,
errtext
);
...
...
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