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
cd795963
Kaydet (Commit)
cd795963
authored
Agu 24, 2007
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use unicode for much of errors.
üst
11e065b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
errors.c
Python/errors.c
+7
-7
No files found.
Python/errors.c
Dosyayı görüntüle @
cd795963
...
@@ -350,7 +350,7 @@ PyErr_SetFromErrnoWithFilenameObject(PyObject *exc, PyObject *filenameObject)
...
@@ -350,7 +350,7 @@ PyErr_SetFromErrnoWithFilenameObject(PyObject *exc, PyObject *filenameObject)
PyObject
*
PyObject
*
PyErr_SetFromErrnoWithFilename
(
PyObject
*
exc
,
char
*
filename
)
PyErr_SetFromErrnoWithFilename
(
PyObject
*
exc
,
char
*
filename
)
{
{
PyObject
*
name
=
filename
?
Py
String
_FromString
(
filename
)
:
NULL
;
PyObject
*
name
=
filename
?
Py
Unicode
_FromString
(
filename
)
:
NULL
;
PyObject
*
result
=
PyErr_SetFromErrnoWithFilenameObject
(
exc
,
name
);
PyObject
*
result
=
PyErr_SetFromErrnoWithFilenameObject
(
exc
,
name
);
Py_XDECREF
(
name
);
Py_XDECREF
(
name
);
return
result
;
return
result
;
...
@@ -429,7 +429,7 @@ PyObject *PyErr_SetExcFromWindowsErrWithFilename(
...
@@ -429,7 +429,7 @@ PyObject *PyErr_SetExcFromWindowsErrWithFilename(
int
ierr
,
int
ierr
,
const
char
*
filename
)
const
char
*
filename
)
{
{
PyObject
*
name
=
filename
?
Py
String
_FromString
(
filename
)
:
NULL
;
PyObject
*
name
=
filename
?
Py
Unicode
_FromString
(
filename
)
:
NULL
;
PyObject
*
ret
=
PyErr_SetExcFromWindowsErrWithFilenameObject
(
exc
,
PyObject
*
ret
=
PyErr_SetExcFromWindowsErrWithFilenameObject
(
exc
,
ierr
,
ierr
,
name
);
name
);
...
@@ -468,7 +468,7 @@ PyObject *PyErr_SetFromWindowsErrWithFilename(
...
@@ -468,7 +468,7 @@ PyObject *PyErr_SetFromWindowsErrWithFilename(
int
ierr
,
int
ierr
,
const
char
*
filename
)
const
char
*
filename
)
{
{
PyObject
*
name
=
filename
?
Py
String
_FromString
(
filename
)
:
NULL
;
PyObject
*
name
=
filename
?
Py
Unicode
_FromString
(
filename
)
:
NULL
;
PyObject
*
result
=
PyErr_SetExcFromWindowsErrWithFilenameObject
(
PyObject
*
result
=
PyErr_SetExcFromWindowsErrWithFilenameObject
(
PyExc_WindowsError
,
PyExc_WindowsError
,
ierr
,
name
);
ierr
,
name
);
...
@@ -558,7 +558,7 @@ PyErr_NewException(char *name, PyObject *base, PyObject *dict)
...
@@ -558,7 +558,7 @@ PyErr_NewException(char *name, PyObject *base, PyObject *dict)
goto
failure
;
goto
failure
;
}
}
if
(
PyDict_GetItemString
(
dict
,
"__module__"
)
==
NULL
)
{
if
(
PyDict_GetItemString
(
dict
,
"__module__"
)
==
NULL
)
{
modulename
=
Py
String
_FromStringAndSize
(
name
,
modulename
=
Py
Unicode
_FromStringAndSize
(
name
,
(
Py_ssize_t
)(
dot
-
name
));
(
Py_ssize_t
)(
dot
-
name
));
if
(
modulename
==
NULL
)
if
(
modulename
==
NULL
)
goto
failure
;
goto
failure
;
...
@@ -610,7 +610,7 @@ PyErr_WriteUnraisable(PyObject *obj)
...
@@ -610,7 +610,7 @@ PyErr_WriteUnraisable(PyObject *obj)
if
(
moduleName
==
NULL
)
if
(
moduleName
==
NULL
)
PyFile_WriteString
(
"<unknown>"
,
f
);
PyFile_WriteString
(
"<unknown>"
,
f
);
else
{
else
{
char
*
modstr
=
Py
String
_AsString
(
moduleName
);
char
*
modstr
=
Py
Unicode
_AsString
(
moduleName
);
if
(
modstr
&&
if
(
modstr
&&
strcmp
(
modstr
,
"__builtin__"
)
!=
0
)
strcmp
(
modstr
,
"__builtin__"
)
!=
0
)
{
{
...
@@ -728,7 +728,7 @@ PyErr_SyntaxLocation(const char *filename, int lineno)
...
@@ -728,7 +728,7 @@ PyErr_SyntaxLocation(const char *filename, int lineno)
Py_DECREF
(
tmp
);
Py_DECREF
(
tmp
);
}
}
if
(
filename
!=
NULL
)
{
if
(
filename
!=
NULL
)
{
tmp
=
Py
String
_FromString
(
filename
);
tmp
=
Py
Unicode
_FromString
(
filename
);
if
(
tmp
==
NULL
)
if
(
tmp
==
NULL
)
PyErr_Clear
();
PyErr_Clear
();
else
{
else
{
...
@@ -805,7 +805,7 @@ PyErr_ProgramText(const char *filename, int lineno)
...
@@ -805,7 +805,7 @@ PyErr_ProgramText(const char *filename, int lineno)
char
*
p
=
linebuf
;
char
*
p
=
linebuf
;
while
(
*
p
==
' '
||
*
p
==
'\t'
||
*
p
==
'\014'
)
while
(
*
p
==
' '
||
*
p
==
'\t'
||
*
p
==
'\014'
)
p
++
;
p
++
;
return
Py
String
_FromString
(
p
);
return
Py
Unicode
_FromString
(
p
);
}
}
return
NULL
;
return
NULL
;
}
}
...
...
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