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
0073f2e4
Kaydet (Commit)
0073f2e4
authored
Kas 21, 2002
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix --disable-unicode compilation problems.
üst
ceeb9627
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
posixmodule.c
Modules/posixmodule.c
+5
-0
fileobject.c
Objects/fileobject.c
+4
-0
No files found.
Modules/posixmodule.c
Dosyayı görüntüle @
0073f2e4
...
@@ -22,6 +22,11 @@ standardized by the C Standard and the POSIX standard (a thinly\n\
...
@@ -22,6 +22,11 @@ standardized by the C Standard and the POSIX standard (a thinly\n\
disguised Unix interface). Refer to the library manual and
\n
\
disguised Unix interface). Refer to the library manual and
\n
\
corresponding Unix manual entries for more information on calls."
);
corresponding Unix manual entries for more information on calls."
);
#ifndef Py_USING_UNICODE
/* This is used in signatures of functions. */
#define Py_UNICODE void
#endif
#if defined(PYOS_OS2)
#if defined(PYOS_OS2)
#define INCL_DOS
#define INCL_DOS
#define INCL_DOSERRORS
#define INCL_DOSERRORS
...
...
Objects/fileobject.c
Dosyayı görüntüle @
0073f2e4
...
@@ -116,9 +116,11 @@ fill_file_fields(PyFileObject *f, FILE *fp, char *name, char *mode,
...
@@ -116,9 +116,11 @@ fill_file_fields(PyFileObject *f, FILE *fp, char *name, char *mode,
Py_DECREF
(
f
->
f_name
);
Py_DECREF
(
f
->
f_name
);
Py_DECREF
(
f
->
f_mode
);
Py_DECREF
(
f
->
f_mode
);
#ifdef Py_USING_UNICODE
if
(
wname
)
if
(
wname
)
f
->
f_name
=
PyUnicode_FromObject
(
wname
);
f
->
f_name
=
PyUnicode_FromObject
(
wname
);
else
else
#endif
f
->
f_name
=
PyString_FromString
(
name
);
f
->
f_name
=
PyString_FromString
(
name
);
f
->
f_mode
=
PyString_FromString
(
mode
);
f
->
f_mode
=
PyString_FromString
(
mode
);
...
@@ -329,6 +331,7 @@ static PyObject *
...
@@ -329,6 +331,7 @@ static PyObject *
file_repr
(
PyFileObject
*
f
)
file_repr
(
PyFileObject
*
f
)
{
{
if
(
PyUnicode_Check
(
f
->
f_name
))
{
if
(
PyUnicode_Check
(
f
->
f_name
))
{
#ifdef Py_USING_UNICODE
PyObject
*
ret
=
NULL
;
PyObject
*
ret
=
NULL
;
PyObject
*
name
;
PyObject
*
name
;
name
=
PyUnicode_AsUnicodeEscapeString
(
f
->
f_name
);
name
=
PyUnicode_AsUnicodeEscapeString
(
f
->
f_name
);
...
@@ -339,6 +342,7 @@ file_repr(PyFileObject *f)
...
@@ -339,6 +342,7 @@ file_repr(PyFileObject *f)
f
);
f
);
Py_XDECREF
(
name
);
Py_XDECREF
(
name
);
return
ret
;
return
ret
;
#endif
}
else
{
}
else
{
return
PyString_FromFormat
(
"<%s file '%s', mode '%s' at %p>"
,
return
PyString_FromFormat
(
"<%s file '%s', mode '%s' at %p>"
,
f
->
f_fp
==
NULL
?
"closed"
:
"open"
,
f
->
f_fp
==
NULL
?
"closed"
:
"open"
,
...
...
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