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
a01a8b65
Kaydet (Commit)
a01a8b65
authored
May 27, 2007
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove use of types.StringType.
üst
c5b6ab0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
pydoc.py
Lib/pydoc.py
+3
-5
No files found.
Lib/pydoc.py
Dosyayı görüntüle @
a01a8b65
...
@@ -52,7 +52,7 @@ Richard Chamberlain, for the first implementation of textdoc.
...
@@ -52,7 +52,7 @@ Richard Chamberlain, for the first implementation of textdoc.
# the current directory is changed with os.chdir(), an incorrect
# the current directory is changed with os.chdir(), an incorrect
# path will be displayed.
# path will be displayed.
import
sys
,
imp
,
os
,
re
,
types
,
inspect
,
__builtin__
,
pkgutil
import
sys
,
imp
,
os
,
re
,
inspect
,
__builtin__
,
pkgutil
from
repr
import
Repr
from
repr
import
Repr
try
:
try
:
from
collections
import
deque
from
collections
import
deque
...
@@ -234,9 +234,7 @@ class ErrorDuringImport(Exception):
...
@@ -234,9 +234,7 @@ class ErrorDuringImport(Exception):
self
.
exc
,
self
.
value
,
self
.
tb
=
exc_info
self
.
exc
,
self
.
value
,
self
.
tb
=
exc_info
def
__str__
(
self
):
def
__str__
(
self
):
exc
=
self
.
exc
exc
=
self
.
exc
.
__name__
if
type
(
exc
)
is
types
.
ClassType
:
exc
=
exc
.
__name__
return
'problem in
%
s -
%
s:
%
s'
%
(
self
.
filename
,
exc
,
self
.
value
)
return
'problem in
%
s -
%
s:
%
s'
%
(
self
.
filename
,
exc
,
self
.
value
)
def
importfile
(
path
):
def
importfile
(
path
):
...
@@ -1316,7 +1314,7 @@ def pager(text):
...
@@ -1316,7 +1314,7 @@ def pager(text):
def
getpager
():
def
getpager
():
"""Decide what method to use for paging through text."""
"""Decide what method to use for paging through text."""
if
type
(
sys
.
stdout
)
is
not
types
.
FileType
:
if
not
hasattr
(
sys
.
stdout
,
"isatty"
)
:
return
plainpager
return
plainpager
if
not
sys
.
stdin
.
isatty
()
or
not
sys
.
stdout
.
isatty
():
if
not
sys
.
stdin
.
isatty
()
or
not
sys
.
stdout
.
isatty
():
return
plainpager
return
plainpager
...
...
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