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
3f36a573
Kaydet (Commit)
3f36a573
authored
Kas 12, 2013
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #19515: Remove identifiers duplicated in the same file.
Patch written by Andrei Dorian Duma.
üst
dcf17f8a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
11 deletions
+6
-11
bufferedio.c
Modules/_io/bufferedio.c
+0
-1
iobase.c
Modules/_io/iobase.c
+2
-3
multibytecodec.c
Modules/cjkcodecs/multibytecodec.c
+2
-2
typeobject.c
Objects/typeobject.c
+0
-1
pythonrun.c
Python/pythonrun.c
+2
-4
No files found.
Modules/_io/bufferedio.c
Dosyayı görüntüle @
3f36a573
...
@@ -52,7 +52,6 @@ bufferediobase_readinto(PyObject *self, PyObject *args)
...
@@ -52,7 +52,6 @@ bufferediobase_readinto(PyObject *self, PyObject *args)
Py_buffer
buf
;
Py_buffer
buf
;
Py_ssize_t
len
;
Py_ssize_t
len
;
PyObject
*
data
;
PyObject
*
data
;
_Py_IDENTIFIER
(
read
);
if
(
!
PyArg_ParseTuple
(
args
,
"w*:readinto"
,
&
buf
))
{
if
(
!
PyArg_ParseTuple
(
args
,
"w*:readinto"
,
&
buf
))
{
return
NULL
;
return
NULL
;
...
...
Modules/_io/iobase.c
Dosyayı görüntüle @
3f36a573
...
@@ -63,6 +63,8 @@ _Py_IDENTIFIER(__IOBase_closed);
...
@@ -63,6 +63,8 @@ _Py_IDENTIFIER(__IOBase_closed);
#define IS_CLOSED(self) \
#define IS_CLOSED(self) \
_PyObject_HasAttrId(self, &PyId___IOBase_closed)
_PyObject_HasAttrId(self, &PyId___IOBase_closed)
_Py_IDENTIFIER
(
read
);
/* Internal methods */
/* Internal methods */
static
PyObject
*
static
PyObject
*
iobase_unsupported
(
const
char
*
message
)
iobase_unsupported
(
const
char
*
message
)
...
@@ -180,7 +182,6 @@ static PyObject *
...
@@ -180,7 +182,6 @@ static PyObject *
iobase_close
(
PyObject
*
self
,
PyObject
*
args
)
iobase_close
(
PyObject
*
self
,
PyObject
*
args
)
{
{
PyObject
*
res
;
PyObject
*
res
;
_Py_IDENTIFIER
(
__IOBase_closed
);
if
(
IS_CLOSED
(
self
))
if
(
IS_CLOSED
(
self
))
Py_RETURN_NONE
;
Py_RETURN_NONE
;
...
@@ -454,7 +455,6 @@ iobase_readline(PyObject *self, PyObject *args)
...
@@ -454,7 +455,6 @@ iobase_readline(PyObject *self, PyObject *args)
int
has_peek
=
0
;
int
has_peek
=
0
;
PyObject
*
buffer
,
*
result
;
PyObject
*
buffer
,
*
result
;
Py_ssize_t
old_size
=
-
1
;
Py_ssize_t
old_size
=
-
1
;
_Py_IDENTIFIER
(
read
);
_Py_IDENTIFIER
(
peek
);
_Py_IDENTIFIER
(
peek
);
if
(
!
PyArg_ParseTuple
(
args
,
"|O&:readline"
,
&
_PyIO_ConvertSsize_t
,
&
limit
))
{
if
(
!
PyArg_ParseTuple
(
args
,
"|O&:readline"
,
&
_PyIO_ConvertSsize_t
,
&
limit
))
{
...
@@ -848,7 +848,6 @@ rawiobase_readall(PyObject *self, PyObject *args)
...
@@ -848,7 +848,6 @@ rawiobase_readall(PyObject *self, PyObject *args)
return
NULL
;
return
NULL
;
while
(
1
)
{
while
(
1
)
{
_Py_IDENTIFIER
(
read
);
PyObject
*
data
=
_PyObject_CallMethodId
(
self
,
&
PyId_read
,
PyObject
*
data
=
_PyObject_CallMethodId
(
self
,
&
PyId_read
,
"i"
,
DEFAULT_BUFFER_SIZE
);
"i"
,
DEFAULT_BUFFER_SIZE
);
if
(
!
data
)
{
if
(
!
data
)
{
...
...
Modules/cjkcodecs/multibytecodec.c
Dosyayı görüntüle @
3f36a573
...
@@ -51,6 +51,8 @@ static PyObject *multibytecodec_encode(MultibyteCodec *,
...
@@ -51,6 +51,8 @@ static PyObject *multibytecodec_encode(MultibyteCodec *,
#define MBENC_RESET MBENC_MAX<<1
/* reset after an encoding session */
#define MBENC_RESET MBENC_MAX<<1
/* reset after an encoding session */
_Py_IDENTIFIER
(
write
);
static
PyObject
*
static
PyObject
*
make_tuple
(
PyObject
*
object
,
Py_ssize_t
len
)
make_tuple
(
PyObject
*
object
,
Py_ssize_t
len
)
{
{
...
@@ -1569,7 +1571,6 @@ mbstreamwriter_iwrite(MultibyteStreamWriterObject *self,
...
@@ -1569,7 +1571,6 @@ mbstreamwriter_iwrite(MultibyteStreamWriterObject *self,
PyObject
*
unistr
)
PyObject
*
unistr
)
{
{
PyObject
*
str
,
*
wr
;
PyObject
*
str
,
*
wr
;
_Py_IDENTIFIER
(
write
);
str
=
encoder_encode_stateful
(
STATEFUL_ECTX
(
self
),
unistr
,
0
);
str
=
encoder_encode_stateful
(
STATEFUL_ECTX
(
self
),
unistr
,
0
);
if
(
str
==
NULL
)
if
(
str
==
NULL
)
...
@@ -1639,7 +1640,6 @@ mbstreamwriter_reset(MultibyteStreamWriterObject *self)
...
@@ -1639,7 +1640,6 @@ mbstreamwriter_reset(MultibyteStreamWriterObject *self)
assert
(
PyBytes_Check
(
pwrt
));
assert
(
PyBytes_Check
(
pwrt
));
if
(
PyBytes_Size
(
pwrt
)
>
0
)
{
if
(
PyBytes_Size
(
pwrt
)
>
0
)
{
PyObject
*
wr
;
PyObject
*
wr
;
_Py_IDENTIFIER
(
write
);
wr
=
_PyObject_CallMethodId
(
self
->
stream
,
&
PyId_write
,
"O"
,
pwrt
);
wr
=
_PyObject_CallMethodId
(
self
->
stream
,
&
PyId_write
,
"O"
,
pwrt
);
if
(
wr
==
NULL
)
{
if
(
wr
==
NULL
)
{
...
...
Objects/typeobject.c
Dosyayı görüntüle @
3f36a573
...
@@ -5633,7 +5633,6 @@ slot_tp_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
...
@@ -5633,7 +5633,6 @@ slot_tp_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
PyObject
*
func
;
PyObject
*
func
;
PyObject
*
newargs
,
*
x
;
PyObject
*
newargs
,
*
x
;
Py_ssize_t
i
,
n
;
Py_ssize_t
i
,
n
;
_Py_IDENTIFIER
(
__new__
);
func
=
_PyObject_GetAttrId
((
PyObject
*
)
type
,
&
PyId___new__
);
func
=
_PyObject_GetAttrId
((
PyObject
*
)
type
,
&
PyId___new__
);
if
(
func
==
NULL
)
if
(
func
==
NULL
)
...
...
Python/pythonrun.c
Dosyayı görüntüle @
3f36a573
...
@@ -37,9 +37,11 @@
...
@@ -37,9 +37,11 @@
_Py_IDENTIFIER
(
builtins
);
_Py_IDENTIFIER
(
builtins
);
_Py_IDENTIFIER
(
excepthook
);
_Py_IDENTIFIER
(
excepthook
);
_Py_IDENTIFIER
(
flush
);
_Py_IDENTIFIER
(
last_traceback
);
_Py_IDENTIFIER
(
last_traceback
);
_Py_IDENTIFIER
(
last_type
);
_Py_IDENTIFIER
(
last_type
);
_Py_IDENTIFIER
(
last_value
);
_Py_IDENTIFIER
(
last_value
);
_Py_IDENTIFIER
(
name
);
_Py_IDENTIFIER
(
ps1
);
_Py_IDENTIFIER
(
ps1
);
_Py_IDENTIFIER
(
ps2
);
_Py_IDENTIFIER
(
ps2
);
_Py_IDENTIFIER
(
stdin
);
_Py_IDENTIFIER
(
stdin
);
...
@@ -215,7 +217,6 @@ get_codec_name(const char *encoding)
...
@@ -215,7 +217,6 @@ get_codec_name(const char *encoding)
{
{
char
*
name_utf8
,
*
name_str
;
char
*
name_utf8
,
*
name_str
;
PyObject
*
codec
,
*
name
=
NULL
;
PyObject
*
codec
,
*
name
=
NULL
;
_Py_IDENTIFIER
(
name
);
codec
=
_PyCodec_Lookup
(
encoding
);
codec
=
_PyCodec_Lookup
(
encoding
);
if
(
!
codec
)
if
(
!
codec
)
...
@@ -512,7 +513,6 @@ flush_std_files(void)
...
@@ -512,7 +513,6 @@ flush_std_files(void)
PyObject
*
fout
=
_PySys_GetObjectId
(
&
PyId_stdout
);
PyObject
*
fout
=
_PySys_GetObjectId
(
&
PyId_stdout
);
PyObject
*
ferr
=
_PySys_GetObjectId
(
&
PyId_stderr
);
PyObject
*
ferr
=
_PySys_GetObjectId
(
&
PyId_stderr
);
PyObject
*
tmp
;
PyObject
*
tmp
;
_Py_IDENTIFIER
(
flush
);
if
(
fout
!=
NULL
&&
fout
!=
Py_None
&&
!
file_is_closed
(
fout
))
{
if
(
fout
!=
NULL
&&
fout
!=
Py_None
&&
!
file_is_closed
(
fout
))
{
tmp
=
_PyObject_CallMethodId
(
fout
,
&
PyId_flush
,
""
);
tmp
=
_PyObject_CallMethodId
(
fout
,
&
PyId_flush
,
""
);
...
@@ -1009,7 +1009,6 @@ create_stdio(PyObject* io,
...
@@ -1009,7 +1009,6 @@ create_stdio(PyObject* io,
_Py_IDENTIFIER
(
open
);
_Py_IDENTIFIER
(
open
);
_Py_IDENTIFIER
(
isatty
);
_Py_IDENTIFIER
(
isatty
);
_Py_IDENTIFIER
(
TextIOWrapper
);
_Py_IDENTIFIER
(
TextIOWrapper
);
_Py_IDENTIFIER
(
name
);
_Py_IDENTIFIER
(
mode
);
_Py_IDENTIFIER
(
mode
);
/* stdin is always opened in buffered mode, first because it shouldn't
/* stdin is always opened in buffered mode, first because it shouldn't
...
@@ -2130,7 +2129,6 @@ flush_io(void)
...
@@ -2130,7 +2129,6 @@ flush_io(void)
{
{
PyObject
*
f
,
*
r
;
PyObject
*
f
,
*
r
;
PyObject
*
type
,
*
value
,
*
traceback
;
PyObject
*
type
,
*
value
,
*
traceback
;
_Py_IDENTIFIER
(
flush
);
/* Save the current exception */
/* Save the current exception */
PyErr_Fetch
(
&
type
,
&
value
,
&
traceback
);
PyErr_Fetch
(
&
type
,
&
value
,
&
traceback
);
...
...
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