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
454bd3a2
Kaydet (Commit)
454bd3a2
authored
Mar 24, 2015
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
stdprinter_write(): mention the encoding
üst
3b06dfb9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
fileobject.c
Objects/fileobject.c
+4
-3
No files found.
Objects/fileobject.c
Dosyayı görüntüle @
454bd3a2
...
@@ -372,7 +372,7 @@ PyFile_NewStdPrinter(int fd)
...
@@ -372,7 +372,7 @@ PyFile_NewStdPrinter(int fd)
static
PyObject
*
static
PyObject
*
stdprinter_write
(
PyStdPrinter_Object
*
self
,
PyObject
*
args
)
stdprinter_write
(
PyStdPrinter_Object
*
self
,
PyObject
*
args
)
{
{
char
*
c
;
char
*
str
;
Py_ssize_t
n
;
Py_ssize_t
n
;
if
(
self
->
fd
<
0
)
{
if
(
self
->
fd
<
0
)
{
...
@@ -383,10 +383,11 @@ stdprinter_write(PyStdPrinter_Object *self, PyObject *args)
...
@@ -383,10 +383,11 @@ stdprinter_write(PyStdPrinter_Object *self, PyObject *args)
Py_RETURN_NONE
;
Py_RETURN_NONE
;
}
}
if
(
!
PyArg_ParseTuple
(
args
,
"s"
,
&
c
))
/* encode Unicode to UTF-8 */
if
(
!
PyArg_ParseTuple
(
args
,
"s"
,
&
str
))
return
NULL
;
return
NULL
;
n
=
_Py_write
(
self
->
fd
,
c
,
strlen
(
c
));
n
=
_Py_write
(
self
->
fd
,
str
,
strlen
(
str
));
if
(
n
==
-
1
)
{
if
(
n
==
-
1
)
{
if
(
errno
==
EAGAIN
)
{
if
(
errno
==
EAGAIN
)
{
PyErr_Clear
();
PyErr_Clear
();
...
...
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