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
f8cc2870
Kaydet (Commit)
f8cc2870
authored
Eki 25, 2016
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #28515: Fixed py3k warnings.
üst
f10006cd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
turtle.py
Lib/lib-tk/turtle.py
+2
-1
pickletester.py
Lib/test/pickletester.py
+3
-0
wave.py
Lib/wave.py
+1
-1
fixcid.py
Tools/scripts/fixcid.py
+4
-4
No files found.
Lib/lib-tk/turtle.py
Dosyayı görüntüle @
f8cc2870
...
...
@@ -728,10 +728,11 @@ class TurtleScreenBase(object):
"""
return
self
.
cv
.
create_image
(
0
,
0
,
image
=
image
)
def
_drawimage
(
self
,
item
,
(
x
,
y
)
,
image
):
def
_drawimage
(
self
,
item
,
pos
,
image
):
"""Configure image item as to draw image object
at position (x,y) on canvas)
"""
x
,
y
=
pos
self
.
cv
.
coords
(
item
,
(
x
*
self
.
xscale
,
-
y
*
self
.
yscale
))
self
.
cv
.
itemconfig
(
item
,
image
=
image
)
...
...
Lib/test/pickletester.py
Dosyayı görüntüle @
f8cc2870
...
...
@@ -1572,6 +1572,7 @@ class REX_six(object):
self
.
items
=
items
def
__eq__
(
self
,
other
):
return
type
(
self
)
is
type
(
other
)
and
self
.
items
==
other
.
items
__hash__
=
None
def
append
(
self
,
item
):
self
.
items
.
append
(
item
)
def
extend
(
self
,
items
):
...
...
@@ -1590,6 +1591,7 @@ class REX_seven(object):
self
.
table
=
table
def
__eq__
(
self
,
other
):
return
type
(
self
)
is
type
(
other
)
and
self
.
table
==
other
.
table
__hash__
=
None
def
__setitem__
(
self
,
key
,
value
):
self
.
table
[
key
]
=
value
def
__reduce__
(
self
):
...
...
@@ -1639,6 +1641,7 @@ class SimpleNewObj(int):
raise
TypeError
(
"SimpleNewObj.__init__() didn't expect to get called"
)
def
__eq__
(
self
,
other
):
return
int
(
self
)
==
int
(
other
)
and
self
.
__dict__
==
other
.
__dict__
__hash__
=
None
class
ComplexNewObj
(
SimpleNewObj
):
def
__getnewargs__
(
self
):
...
...
Lib/wave.py
Dosyayı görüntüle @
f8cc2870
...
...
@@ -243,7 +243,7 @@ class Wave_read:
assert
data
.
itemsize
==
self
.
_sampwidth
nitems
=
nframes
*
self
.
_nchannels
if
nitems
*
self
.
_sampwidth
>
chunk
.
chunksize
-
chunk
.
size_read
:
nitems
=
(
chunk
.
chunksize
-
chunk
.
size_read
)
/
self
.
_sampwidth
nitems
=
(
chunk
.
chunksize
-
chunk
.
size_read
)
/
/
self
.
_sampwidth
data
.
fromfile
(
chunk
.
file
.
file
,
nitems
)
# "tell" data chunk how much was read
chunk
.
size_read
=
chunk
.
size_read
+
nitems
*
self
.
_sampwidth
...
...
Tools/scripts/fixcid.py
Dosyayı görüntüle @
f8cc2870
...
...
@@ -242,14 +242,14 @@ def fixline(line):
elif
found
==
'*/'
:
Program
=
OutsideCommentProgram
n
=
len
(
found
)
if
Dict
.
has_key
(
found
)
:
if
found
in
Dict
:
subst
=
Dict
[
found
]
if
Program
is
InsideCommentProgram
:
if
not
Docomments
:
print
'Found in comment:'
,
found
i
=
i
+
n
continue
if
NotInComment
.
has_key
(
found
)
:
if
found
in
NotInComment
:
## print 'Ignored in comment:',
## print found, '-->', subst
## print 'Line:', line,
...
...
@@ -294,7 +294,7 @@ def addsubst(substfile):
if
not
words
:
continue
if
len
(
words
)
==
3
and
words
[
0
]
==
'struct'
:
words
[:
2
]
=
[
words
[
0
]
+
' '
+
words
[
1
]]
elif
len
(
words
)
<>
2
:
elif
len
(
words
)
!=
2
:
err
(
substfile
+
'
%
s:
%
r: warning: bad line:
%
r'
%
(
substfile
,
lineno
,
line
))
continue
if
Reverse
:
...
...
@@ -306,7 +306,7 @@ def addsubst(substfile):
if
key
[
0
]
==
'*'
:
key
=
key
[
1
:]
NotInComment
[
key
]
=
value
if
Dict
.
has_key
(
key
)
:
if
key
in
Dict
:
err
(
'
%
s:
%
r: warning: overriding:
%
r
%
r
\n
'
%
(
substfile
,
lineno
,
key
,
value
))
err
(
'
%
s:
%
r: warning: previous:
%
r
\n
'
%
(
substfile
,
lineno
,
Dict
[
key
]))
Dict
[
key
]
=
value
...
...
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