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
f545baa0
Kaydet (Commit)
f545baa0
authored
Haz 15, 2003
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Whitespace normalization.
üst
cda32b7d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
12 deletions
+11
-12
pdb.py
Lib/pdb.py
+1
-1
test_codeop.py
Lib/test/test_codeop.py
+6
-6
test_dummy_thread.py
Lib/test/test_dummy_thread.py
+1
-1
test_grammar.py
Lib/test/test_grammar.py
+1
-1
test_mimetools.py
Lib/test/test_mimetools.py
+0
-1
test_urllibnet.py
Lib/test/test_urllibnet.py
+1
-1
urllib2.py
Lib/urllib2.py
+1
-1
No files found.
Lib/pdb.py
Dosyayı görüntüle @
f545baa0
...
@@ -397,7 +397,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
...
@@ -397,7 +397,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
except
ValueError
:
except
ValueError
:
print
'Breakpoint index
%
r is not a number'
%
i
print
'Breakpoint index
%
r is not a number'
%
i
continue
continue
if
not
(
0
<=
i
<
len
(
bdb
.
Breakpoint
.
bpbynumber
)):
if
not
(
0
<=
i
<
len
(
bdb
.
Breakpoint
.
bpbynumber
)):
print
'No breakpoint numbered'
,
i
print
'No breakpoint numbered'
,
i
continue
continue
...
...
Lib/test/test_codeop.py
Dosyayı görüntüle @
f545baa0
...
@@ -65,12 +65,12 @@ class CodeopTests(unittest.TestCase):
...
@@ -65,12 +65,12 @@ class CodeopTests(unittest.TestCase):
compile
(
"pass"
,
"<input>"
,
'single'
,
compile
(
"pass"
,
"<input>"
,
'single'
,
PyCF_DONT_IMPLY_DEDENT
))
PyCF_DONT_IMPLY_DEDENT
))
self
.
assertEquals
(
compile_command
(
"
\n
"
),
self
.
assertEquals
(
compile_command
(
"
\n
"
),
compile
(
"pass"
,
"<input>"
,
'single'
,
compile
(
"pass"
,
"<input>"
,
'single'
,
PyCF_DONT_IMPLY_DEDENT
))
PyCF_DONT_IMPLY_DEDENT
))
else
:
else
:
av
(
""
)
av
(
""
)
av
(
"
\n
"
)
av
(
"
\n
"
)
av
(
"a = 1"
)
av
(
"a = 1"
)
av
(
"
\n
a = 1"
)
av
(
"
\n
a = 1"
)
av
(
"a = 1
\n
"
)
av
(
"a = 1
\n
"
)
...
@@ -125,9 +125,9 @@ class CodeopTests(unittest.TestCase):
...
@@ -125,9 +125,9 @@ class CodeopTests(unittest.TestCase):
ai
(
"if 1:"
)
ai
(
"if 1:"
)
ai
(
"if 1:
\n
"
)
ai
(
"if 1:
\n
"
)
ai
(
"if 1:
\n
pass
\n
if 1:
\n
pass
\n
else:"
)
ai
(
"if 1:
\n
pass
\n
if 1:
\n
pass
\n
else:"
)
ai
(
"if 1:
\n
pass
\n
if 1:
\n
pass
\n
else:
\n
"
)
ai
(
"if 1:
\n
pass
\n
if 1:
\n
pass
\n
else:
\n
"
)
ai
(
"if 1:
\n
pass
\n
if 1:
\n
pass
\n
else:
\n
pass"
)
ai
(
"if 1:
\n
pass
\n
if 1:
\n
pass
\n
else:
\n
pass"
)
ai
(
"def x():"
)
ai
(
"def x():"
)
ai
(
"def x():
\n
"
)
ai
(
"def x():
\n
"
)
ai
(
"def x():
\n\n
"
)
ai
(
"def x():
\n\n
"
)
...
@@ -156,7 +156,7 @@ class CodeopTests(unittest.TestCase):
...
@@ -156,7 +156,7 @@ class CodeopTests(unittest.TestCase):
ai
(
"a @"
)
ai
(
"a @"
)
ai
(
"a b @"
)
ai
(
"a b @"
)
ai
(
"a ** @"
)
ai
(
"a ** @"
)
ai
(
"a = "
)
ai
(
"a = "
)
ai
(
"a = 9 +"
)
ai
(
"a = 9 +"
)
...
...
Lib/test/test_dummy_thread.py
Dosyayı görüntüle @
f545baa0
...
@@ -109,7 +109,7 @@ class MiscTests(unittest.TestCase):
...
@@ -109,7 +109,7 @@ class MiscTests(unittest.TestCase):
_thread
.
interrupt_main
()
_thread
.
interrupt_main
()
self
.
failUnlessRaises
(
KeyboardInterrupt
,
_thread
.
start_new_thread
,
self
.
failUnlessRaises
(
KeyboardInterrupt
,
_thread
.
start_new_thread
,
call_interrupt
,
tuple
())
call_interrupt
,
tuple
())
def
test_interrupt_in_main
(
self
):
def
test_interrupt_in_main
(
self
):
# Make sure that if interrupt_main is called in main threat that
# Make sure that if interrupt_main is called in main threat that
# KeyboardInterrupt is raised instantly.
# KeyboardInterrupt is raised instantly.
...
...
Lib/test/test_grammar.py
Dosyayı görüntüle @
f545baa0
...
@@ -701,7 +701,7 @@ print [3 * x for x in nums]
...
@@ -701,7 +701,7 @@ print [3 * x for x in nums]
print
[
x
for
x
in
nums
if
x
>
2
]
print
[
x
for
x
in
nums
if
x
>
2
]
print
[(
i
,
s
)
for
i
in
nums
for
s
in
strs
]
print
[(
i
,
s
)
for
i
in
nums
for
s
in
strs
]
print
[(
i
,
s
)
for
i
in
nums
for
s
in
[
f
for
f
in
strs
if
"n"
in
f
]]
print
[(
i
,
s
)
for
i
in
nums
for
s
in
[
f
for
f
in
strs
if
"n"
in
f
]]
print
[(
lambda
a
:[
a
**
i
for
i
in
range
(
a
+
1
)])(
j
)
for
j
in
range
(
5
)]
print
[(
lambda
a
:[
a
**
i
for
i
in
range
(
a
+
1
)])(
j
)
for
j
in
range
(
5
)]
def
test_in_func
(
l
):
def
test_in_func
(
l
):
return
[
None
<
x
<
3
for
x
in
l
if
x
>
2
]
return
[
None
<
x
<
3
for
x
in
l
if
x
>
2
]
...
...
Lib/test/test_mimetools.py
Dosyayı görüntüle @
f545baa0
...
@@ -48,4 +48,3 @@ def test_main():
...
@@ -48,4 +48,3 @@ def test_main():
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
test_main
()
test_main
()
Lib/test/test_urllibnet.py
Dosyayı görüntüle @
f545baa0
...
@@ -84,7 +84,7 @@ class urlopenNetworkTests(unittest.TestCase):
...
@@ -84,7 +84,7 @@ class urlopenNetworkTests(unittest.TestCase):
self
.
assertEqual
(
gotten_url
,
URL
)
self
.
assertEqual
(
gotten_url
,
URL
)
def
test_fileno
(
self
):
def
test_fileno
(
self
):
if
(
sys
.
platform
in
(
'win32'
,)
or
if
(
sys
.
platform
in
(
'win32'
,)
or
not
hasattr
(
os
,
'fdopen'
)):
not
hasattr
(
os
,
'fdopen'
)):
# On Windows, socket handles are not file descriptors; this
# On Windows, socket handles are not file descriptors; this
# test can't pass on Windows.
# test can't pass on Windows.
...
...
Lib/urllib2.py
Dosyayı görüntüle @
f545baa0
...
@@ -412,7 +412,7 @@ class BaseHandler:
...
@@ -412,7 +412,7 @@ class BaseHandler:
# classes which are not aware of handler_order).
# classes which are not aware of handler_order).
return
True
return
True
return
self
.
handler_order
<
other
.
handler_order
return
self
.
handler_order
<
other
.
handler_order
class
HTTPDefaultErrorHandler
(
BaseHandler
):
class
HTTPDefaultErrorHandler
(
BaseHandler
):
def
http_error_default
(
self
,
req
,
fp
,
code
,
msg
,
hdrs
):
def
http_error_default
(
self
,
req
,
fp
,
code
,
msg
,
hdrs
):
...
...
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