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
478c1055
Kaydet (Commit)
478c1055
authored
Haz 29, 2003
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Whitespace normalization.
üst
db3756da
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
cgitb.py
Lib/cgitb.py
+1
-1
inspect.py
Lib/inspect.py
+1
-1
test_bool.py
Lib/test/test_bool.py
+3
-3
test_complex.py
Lib/test/test_complex.py
+1
-1
test_posixpath.py
Lib/test/test_posixpath.py
+2
-2
No files found.
Lib/cgitb.py
Dosyayı görüntüle @
478c1055
...
@@ -9,7 +9,7 @@ at the top of your script. The optional arguments to enable() are:
...
@@ -9,7 +9,7 @@ at the top of your script. The optional arguments to enable() are:
display - if true, tracebacks are displayed in the web browser
display - if true, tracebacks are displayed in the web browser
logdir - if set, tracebacks are written to files in this directory
logdir - if set, tracebacks are written to files in this directory
context - number of lines of source code to show for each stack frame
context - number of lines of source code to show for each stack frame
format
- 'text' or 'html' controls the output format
format
- 'text' or 'html' controls the output format
By default, tracebacks are displayed but not saved, the context is 5 lines
By default, tracebacks are displayed but not saved, the context is 5 lines
and the output format is 'html' (for backwards compatibility with the
and the output format is 'html' (for backwards compatibility with the
...
...
Lib/inspect.py
Dosyayı görüntüle @
478c1055
...
@@ -325,7 +325,7 @@ def getfile(object):
...
@@ -325,7 +325,7 @@ def getfile(object):
object
=
object
.
f_code
object
=
object
.
f_code
if
iscode
(
object
):
if
iscode
(
object
):
return
object
.
co_filename
return
object
.
co_filename
raise
TypeError
(
'arg is not a module, class, method, '
raise
TypeError
(
'arg is not a module, class, method, '
'function, traceback, frame, or code object'
)
'function, traceback, frame, or code object'
)
def
getmoduleinfo
(
path
):
def
getmoduleinfo
(
path
):
...
...
Lib/test/test_bool.py
Dosyayı görüntüle @
478c1055
...
@@ -329,17 +329,17 @@ class BoolTest(unittest.TestCase):
...
@@ -329,17 +329,17 @@ class BoolTest(unittest.TestCase):
def
__nonzero__
(
self
):
def
__nonzero__
(
self
):
return
self
return
self
check
(
Foo
())
check
(
Foo
())
class
Bar
(
object
):
class
Bar
(
object
):
def
__nonzero__
(
self
):
def
__nonzero__
(
self
):
return
"Yes"
return
"Yes"
check
(
Bar
())
check
(
Bar
())
class
Baz
(
int
):
class
Baz
(
int
):
def
__nonzero__
(
self
):
def
__nonzero__
(
self
):
return
self
return
self
check
(
Baz
())
check
(
Baz
())
def
test_main
():
def
test_main
():
test_support
.
run_unittest
(
BoolTest
)
test_support
.
run_unittest
(
BoolTest
)
...
...
Lib/test/test_complex.py
Dosyayı görüntüle @
478c1055
...
@@ -208,7 +208,7 @@ class ComplexTest(unittest.TestCase):
...
@@ -208,7 +208,7 @@ class ComplexTest(unittest.TestCase):
self
.
assertRaises
(
ValueError
,
complex
,
unicode
(
"x"
))
self
.
assertRaises
(
ValueError
,
complex
,
unicode
(
"x"
))
class
EvilExc
(
Exception
):
class
EvilExc
(
Exception
):
pass
pass
class
evilcomplex
:
class
evilcomplex
:
def
__complex__
(
self
):
def
__complex__
(
self
):
...
...
Lib/test/test_posixpath.py
Dosyayı görüntüle @
478c1055
...
@@ -237,7 +237,7 @@ class PosixPathTest(unittest.TestCase):
...
@@ -237,7 +237,7 @@ class PosixPathTest(unittest.TestCase):
),
),
True
True
)
)
# If we don't have links, assume that os.stat doesn't return resonable
# If we don't have links, assume that os.stat doesn't return resonable
# inode information and thus, that samefile() doesn't work
# inode information and thus, that samefile() doesn't work
if
hasattr
(
os
,
"symlink"
):
if
hasattr
(
os
,
"symlink"
):
os
.
symlink
(
os
.
symlink
(
...
@@ -288,7 +288,7 @@ class PosixPathTest(unittest.TestCase):
...
@@ -288,7 +288,7 @@ class PosixPathTest(unittest.TestCase):
),
),
True
True
)
)
# If we don't have links, assume that os.stat() doesn't return resonable
# If we don't have links, assume that os.stat() doesn't return resonable
# inode information and thus, that samefile() doesn't work
# inode information and thus, that samefile() doesn't work
if
hasattr
(
os
,
"symlink"
):
if
hasattr
(
os
,
"symlink"
):
if
hasattr
(
os
,
"symlink"
):
if
hasattr
(
os
,
"symlink"
):
...
...
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