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
c431854a
Kaydet (Commit)
c431854a
authored
Mar 29, 2017
tarafından
Louie Lu
Kaydeden (comit)
Xiang Zhang
Mar 29, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-29927: Remove duplicate BufferError init and unnecessary semicolons (GH-866)
üst
83371f4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
53 deletions
+51
-53
exceptions.c
Objects/exceptions.c
+51
-53
No files found.
Objects/exceptions.c
Dosyayı görüntüle @
c431854a
...
@@ -2488,7 +2488,6 @@ _PyExc_Init(PyObject *bltinmod)
...
@@ -2488,7 +2488,6 @@ _PyExc_Init(PyObject *bltinmod)
PRE_INIT
(
ZeroDivisionError
)
PRE_INIT
(
ZeroDivisionError
)
PRE_INIT
(
SystemError
)
PRE_INIT
(
SystemError
)
PRE_INIT
(
ReferenceError
)
PRE_INIT
(
ReferenceError
)
PRE_INIT
(
BufferError
)
PRE_INIT
(
MemoryError
)
PRE_INIT
(
MemoryError
)
PRE_INIT
(
BufferError
)
PRE_INIT
(
BufferError
)
PRE_INIT
(
Warning
)
PRE_INIT
(
Warning
)
...
@@ -2504,22 +2503,22 @@ _PyExc_Init(PyObject *bltinmod)
...
@@ -2504,22 +2503,22 @@ _PyExc_Init(PyObject *bltinmod)
PRE_INIT
(
ResourceWarning
)
PRE_INIT
(
ResourceWarning
)
/* OSError subclasses */
/* OSError subclasses */
PRE_INIT
(
ConnectionError
)
;
PRE_INIT
(
ConnectionError
)
PRE_INIT
(
BlockingIOError
)
;
PRE_INIT
(
BlockingIOError
)
PRE_INIT
(
BrokenPipeError
)
;
PRE_INIT
(
BrokenPipeError
)
PRE_INIT
(
ChildProcessError
)
;
PRE_INIT
(
ChildProcessError
)
PRE_INIT
(
ConnectionAbortedError
)
;
PRE_INIT
(
ConnectionAbortedError
)
PRE_INIT
(
ConnectionRefusedError
)
;
PRE_INIT
(
ConnectionRefusedError
)
PRE_INIT
(
ConnectionResetError
)
;
PRE_INIT
(
ConnectionResetError
)
PRE_INIT
(
FileExistsError
)
;
PRE_INIT
(
FileExistsError
)
PRE_INIT
(
FileNotFoundError
)
;
PRE_INIT
(
FileNotFoundError
)
PRE_INIT
(
IsADirectoryError
)
;
PRE_INIT
(
IsADirectoryError
)
PRE_INIT
(
NotADirectoryError
)
;
PRE_INIT
(
NotADirectoryError
)
PRE_INIT
(
InterruptedError
)
;
PRE_INIT
(
InterruptedError
)
PRE_INIT
(
PermissionError
)
;
PRE_INIT
(
PermissionError
)
PRE_INIT
(
ProcessLookupError
)
;
PRE_INIT
(
ProcessLookupError
)
PRE_INIT
(
TimeoutError
)
;
PRE_INIT
(
TimeoutError
)
bdict
=
PyModule_GetDict
(
bltinmod
);
bdict
=
PyModule_GetDict
(
bltinmod
);
if
(
bdict
==
NULL
)
if
(
bdict
==
NULL
)
...
@@ -2566,7 +2565,6 @@ _PyExc_Init(PyObject *bltinmod)
...
@@ -2566,7 +2565,6 @@ _PyExc_Init(PyObject *bltinmod)
POST_INIT
(
ZeroDivisionError
)
POST_INIT
(
ZeroDivisionError
)
POST_INIT
(
SystemError
)
POST_INIT
(
SystemError
)
POST_INIT
(
ReferenceError
)
POST_INIT
(
ReferenceError
)
POST_INIT
(
BufferError
)
POST_INIT
(
MemoryError
)
POST_INIT
(
MemoryError
)
POST_INIT
(
BufferError
)
POST_INIT
(
BufferError
)
POST_INIT
(
Warning
)
POST_INIT
(
Warning
)
...
@@ -2588,43 +2586,43 @@ _PyExc_Init(PyObject *bltinmod)
...
@@ -2588,43 +2586,43 @@ _PyExc_Init(PyObject *bltinmod)
}
}
/* OSError subclasses */
/* OSError subclasses */
POST_INIT
(
ConnectionError
)
;
POST_INIT
(
ConnectionError
)
POST_INIT
(
BlockingIOError
)
;
POST_INIT
(
BlockingIOError
)
ADD_ERRNO
(
BlockingIOError
,
EAGAIN
)
;
ADD_ERRNO
(
BlockingIOError
,
EAGAIN
)
ADD_ERRNO
(
BlockingIOError
,
EALREADY
)
;
ADD_ERRNO
(
BlockingIOError
,
EALREADY
)
ADD_ERRNO
(
BlockingIOError
,
EINPROGRESS
)
;
ADD_ERRNO
(
BlockingIOError
,
EINPROGRESS
)
ADD_ERRNO
(
BlockingIOError
,
EWOULDBLOCK
)
;
ADD_ERRNO
(
BlockingIOError
,
EWOULDBLOCK
)
POST_INIT
(
BrokenPipeError
)
;
POST_INIT
(
BrokenPipeError
)
ADD_ERRNO
(
BrokenPipeError
,
EPIPE
)
;
ADD_ERRNO
(
BrokenPipeError
,
EPIPE
)
#ifdef ESHUTDOWN
#ifdef ESHUTDOWN
ADD_ERRNO
(
BrokenPipeError
,
ESHUTDOWN
)
;
ADD_ERRNO
(
BrokenPipeError
,
ESHUTDOWN
)
#endif
#endif
POST_INIT
(
ChildProcessError
)
;
POST_INIT
(
ChildProcessError
)
ADD_ERRNO
(
ChildProcessError
,
ECHILD
)
;
ADD_ERRNO
(
ChildProcessError
,
ECHILD
)
POST_INIT
(
ConnectionAbortedError
)
;
POST_INIT
(
ConnectionAbortedError
)
ADD_ERRNO
(
ConnectionAbortedError
,
ECONNABORTED
)
;
ADD_ERRNO
(
ConnectionAbortedError
,
ECONNABORTED
)
POST_INIT
(
ConnectionRefusedError
)
;
POST_INIT
(
ConnectionRefusedError
)
ADD_ERRNO
(
ConnectionRefusedError
,
ECONNREFUSED
)
;
ADD_ERRNO
(
ConnectionRefusedError
,
ECONNREFUSED
)
POST_INIT
(
ConnectionResetError
)
;
POST_INIT
(
ConnectionResetError
)
ADD_ERRNO
(
ConnectionResetError
,
ECONNRESET
)
;
ADD_ERRNO
(
ConnectionResetError
,
ECONNRESET
)
POST_INIT
(
FileExistsError
)
;
POST_INIT
(
FileExistsError
)
ADD_ERRNO
(
FileExistsError
,
EEXIST
)
;
ADD_ERRNO
(
FileExistsError
,
EEXIST
)
POST_INIT
(
FileNotFoundError
)
;
POST_INIT
(
FileNotFoundError
)
ADD_ERRNO
(
FileNotFoundError
,
ENOENT
)
;
ADD_ERRNO
(
FileNotFoundError
,
ENOENT
)
POST_INIT
(
IsADirectoryError
)
;
POST_INIT
(
IsADirectoryError
)
ADD_ERRNO
(
IsADirectoryError
,
EISDIR
)
;
ADD_ERRNO
(
IsADirectoryError
,
EISDIR
)
POST_INIT
(
NotADirectoryError
)
;
POST_INIT
(
NotADirectoryError
)
ADD_ERRNO
(
NotADirectoryError
,
ENOTDIR
)
;
ADD_ERRNO
(
NotADirectoryError
,
ENOTDIR
)
POST_INIT
(
InterruptedError
)
;
POST_INIT
(
InterruptedError
)
ADD_ERRNO
(
InterruptedError
,
EINTR
)
;
ADD_ERRNO
(
InterruptedError
,
EINTR
)
POST_INIT
(
PermissionError
)
;
POST_INIT
(
PermissionError
)
ADD_ERRNO
(
PermissionError
,
EACCES
)
;
ADD_ERRNO
(
PermissionError
,
EACCES
)
ADD_ERRNO
(
PermissionError
,
EPERM
)
;
ADD_ERRNO
(
PermissionError
,
EPERM
)
POST_INIT
(
ProcessLookupError
)
;
POST_INIT
(
ProcessLookupError
)
ADD_ERRNO
(
ProcessLookupError
,
ESRCH
)
;
ADD_ERRNO
(
ProcessLookupError
,
ESRCH
)
POST_INIT
(
TimeoutError
)
;
POST_INIT
(
TimeoutError
)
ADD_ERRNO
(
TimeoutError
,
ETIMEDOUT
)
;
ADD_ERRNO
(
TimeoutError
,
ETIMEDOUT
)
preallocate_memerrors
();
preallocate_memerrors
();
...
...
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