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
a27c8e37
Kaydet (Commit)
a27c8e37
authored
May 01, 2011
tarafından
Éric Araujo
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Branch merge
üst
d6dcf826
b22e17b2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
test_register.py
Lib/distutils/tests/test_register.py
+3
-3
heapq.py
Lib/heapq.py
+3
-3
sysconfig.py
Lib/sysconfig.py
+0
-1
No files found.
Lib/distutils/tests/test_register.py
Dosyayı görüntüle @
a27c8e37
...
@@ -138,7 +138,7 @@ class RegisterTestCase(PyPIRCCommandTestCase):
...
@@ -138,7 +138,7 @@ class RegisterTestCase(PyPIRCCommandTestCase):
# let's see what the server received : we should
# let's see what the server received : we should
# have 2 similar requests
# have 2 similar requests
self
.
assert
True
(
self
.
conn
.
reqs
,
2
)
self
.
assert
Equal
(
len
(
self
.
conn
.
reqs
)
,
2
)
req1
=
dict
(
self
.
conn
.
reqs
[
0
]
.
headers
)
req1
=
dict
(
self
.
conn
.
reqs
[
0
]
.
headers
)
req2
=
dict
(
self
.
conn
.
reqs
[
1
]
.
headers
)
req2
=
dict
(
self
.
conn
.
reqs
[
1
]
.
headers
)
self
.
assertEqual
(
req2
[
'Content-length'
],
req1
[
'Content-length'
])
self
.
assertEqual
(
req2
[
'Content-length'
],
req1
[
'Content-length'
])
...
@@ -168,7 +168,7 @@ class RegisterTestCase(PyPIRCCommandTestCase):
...
@@ -168,7 +168,7 @@ class RegisterTestCase(PyPIRCCommandTestCase):
del
register_module
.
raw_input
del
register_module
.
raw_input
# we should have send a request
# we should have send a request
self
.
assert
True
(
self
.
conn
.
reqs
,
1
)
self
.
assert
Equal
(
len
(
self
.
conn
.
reqs
)
,
1
)
req
=
self
.
conn
.
reqs
[
0
]
req
=
self
.
conn
.
reqs
[
0
]
headers
=
dict
(
req
.
headers
)
headers
=
dict
(
req
.
headers
)
self
.
assertEqual
(
headers
[
'Content-length'
],
'608'
)
self
.
assertEqual
(
headers
[
'Content-length'
],
'608'
)
...
@@ -186,7 +186,7 @@ class RegisterTestCase(PyPIRCCommandTestCase):
...
@@ -186,7 +186,7 @@ class RegisterTestCase(PyPIRCCommandTestCase):
del
register_module
.
raw_input
del
register_module
.
raw_input
# we should have send a request
# we should have send a request
self
.
assert
True
(
self
.
conn
.
reqs
,
1
)
self
.
assert
Equal
(
len
(
self
.
conn
.
reqs
)
,
1
)
req
=
self
.
conn
.
reqs
[
0
]
req
=
self
.
conn
.
reqs
[
0
]
headers
=
dict
(
req
.
headers
)
headers
=
dict
(
req
.
headers
)
self
.
assertEqual
(
headers
[
'Content-length'
],
'290'
)
self
.
assertEqual
(
headers
[
'Content-length'
],
'290'
)
...
...
Lib/heapq.py
Dosyayı görüntüle @
a27c8e37
...
@@ -178,7 +178,7 @@ def heappushpop(heap, item):
...
@@ -178,7 +178,7 @@ def heappushpop(heap, item):
return
item
return
item
def
heapify
(
x
):
def
heapify
(
x
):
"""Transform list into a heap, in-place, in O(len(
heap
)) time."""
"""Transform list into a heap, in-place, in O(len(
x
)) time."""
n
=
len
(
x
)
n
=
len
(
x
)
# Transform bottom-up. The largest index there's any point to looking at
# Transform bottom-up. The largest index there's any point to looking at
# is the largest with a child index in-range, so must have 2*i + 1 < n,
# is the largest with a child index in-range, so must have 2*i + 1 < n,
...
@@ -368,7 +368,7 @@ def nsmallest(n, iterable, key=None):
...
@@ -368,7 +368,7 @@ def nsmallest(n, iterable, key=None):
return
[
min
(
chain
(
head
,
it
))]
return
[
min
(
chain
(
head
,
it
))]
return
[
min
(
chain
(
head
,
it
),
key
=
key
)]
return
[
min
(
chain
(
head
,
it
),
key
=
key
)]
# When n>=size, it's faster to use sort()
# When n>=size, it's faster to use sort
ed
()
try
:
try
:
size
=
len
(
iterable
)
size
=
len
(
iterable
)
except
(
TypeError
,
AttributeError
):
except
(
TypeError
,
AttributeError
):
...
@@ -406,7 +406,7 @@ def nlargest(n, iterable, key=None):
...
@@ -406,7 +406,7 @@ def nlargest(n, iterable, key=None):
return
[
max
(
chain
(
head
,
it
))]
return
[
max
(
chain
(
head
,
it
))]
return
[
max
(
chain
(
head
,
it
),
key
=
key
)]
return
[
max
(
chain
(
head
,
it
),
key
=
key
)]
# When n>=size, it's faster to use sort()
# When n>=size, it's faster to use sort
ed
()
try
:
try
:
size
=
len
(
iterable
)
size
=
len
(
iterable
)
except
(
TypeError
,
AttributeError
):
except
(
TypeError
,
AttributeError
):
...
...
Lib/sysconfig.py
Dosyayı görüntüle @
a27c8e37
...
@@ -639,7 +639,6 @@ def get_platform():
...
@@ -639,7 +639,6 @@ def get_platform():
m
=
re
.
search
(
m
=
re
.
search
(
r'<key>ProductUserVisibleVersion</key>\s*'
+
r'<key>ProductUserVisibleVersion</key>\s*'
+
r'<string>(.*?)</string>'
,
f
.
read
())
r'<string>(.*?)</string>'
,
f
.
read
())
f
.
close
()
if
m
is
not
None
:
if
m
is
not
None
:
macrelease
=
'.'
.
join
(
m
.
group
(
1
)
.
split
(
'.'
)[:
2
])
macrelease
=
'.'
.
join
(
m
.
group
(
1
)
.
split
(
'.'
)[:
2
])
# else: fall back to the default behaviour
# else: fall back to the default behaviour
...
...
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