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
95f285c7
Kaydet (Commit)
95f285c7
authored
Şub 24, 2009
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Revert unintended part of r69948. Pydoc was not supposed to change.
üst
4d9a823c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
pydoc.py
Lib/pydoc.py
+10
-10
No files found.
Lib/pydoc.py
Dosyayı görüntüle @
95f285c7
...
@@ -390,7 +390,7 @@ class HTMLRepr(Repr):
...
@@ -390,7 +390,7 @@ class HTMLRepr(Repr):
# needed to make any special characters, so show a raw string.
# needed to make any special characters, so show a raw string.
return
'r'
+
testrepr
[
0
]
+
self
.
escape
(
test
)
+
testrepr
[
0
]
return
'r'
+
testrepr
[
0
]
+
self
.
escape
(
test
)
+
testrepr
[
0
]
return
re
.
sub
(
r'((\\[\\abfnrtv\'"]|\\[0-9]..|\\x..|\\u....)+)'
,
return
re
.
sub
(
r'((\\[\\abfnrtv\'"]|\\[0-9]..|\\x..|\\u....)+)'
,
r'<
span class="">\1</span
>'
,
r'<
font color="#c040c0">\1</font
>'
,
self
.
escape
(
testrepr
))
self
.
escape
(
testrepr
))
repr_str
=
repr_string
repr_str
=
repr_string
...
@@ -417,7 +417,7 @@ class HTMLDoc(Doc):
...
@@ -417,7 +417,7 @@ class HTMLDoc(Doc):
return
'''
return
'''
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python:
%
s</title>
<html><head><title>Python:
%
s</title>
</head><body>
</head><body
bgcolor="#f0f0f8"
>
%
s
%
s
</body></html>'''
%
(
title
,
contents
)
</body></html>'''
%
(
title
,
contents
)
...
@@ -456,7 +456,7 @@ class HTMLDoc(Doc):
...
@@ -456,7 +456,7 @@ class HTMLDoc(Doc):
def
bigsection
(
self
,
title
,
*
args
):
def
bigsection
(
self
,
title
,
*
args
):
"""Format a section with a big heading."""
"""Format a section with a big heading."""
title
=
'<
span class="bigsection">
%
s</span
>'
%
title
title
=
'<
big><strong>
%
s</strong></big
>'
%
title
return
self
.
section
(
title
,
*
args
)
return
self
.
section
(
title
,
*
args
)
def
preformat
(
self
,
text
):
def
preformat
(
self
,
text
):
...
@@ -477,7 +477,7 @@ class HTMLDoc(Doc):
...
@@ -477,7 +477,7 @@ class HTMLDoc(Doc):
result
=
result
+
'</td>'
result
=
result
+
'</td>'
return
'<table width="100
%%
" summary="list"><tr>
%
s</tr></table>'
%
result
return
'<table width="100
%%
" summary="list"><tr>
%
s</tr></table>'
%
result
def
grey
(
self
,
text
):
return
'<
span class="grey">
%
s</span
>'
%
text
def
grey
(
self
,
text
):
return
'<
font color="#909090">
%
s</font
>'
%
text
def
namelink
(
self
,
name
,
*
dicts
):
def
namelink
(
self
,
name
,
*
dicts
):
"""Make a link for an identifier, given name-to-URL mappings."""
"""Make a link for an identifier, given name-to-URL mappings."""
...
@@ -508,7 +508,7 @@ class HTMLDoc(Doc):
...
@@ -508,7 +508,7 @@ class HTMLDoc(Doc):
else
:
else
:
url
=
'
%
s.html'
%
name
url
=
'
%
s.html'
%
name
if
ispackage
:
if
ispackage
:
text
=
'<s
pan class="package">
%
s</span
> (package)'
%
name
text
=
'<s
trong>
%
s</strong
> (package)'
%
name
else
:
else
:
text
=
name
text
=
name
return
'<a href="
%
s">
%
s</a>'
%
(
url
,
text
)
return
'<a href="
%
s">
%
s</a>'
%
(
url
,
text
)
...
@@ -542,7 +542,7 @@ class HTMLDoc(Doc):
...
@@ -542,7 +542,7 @@ class HTMLDoc(Doc):
elif
text
[
end
:
end
+
1
]
==
'('
:
elif
text
[
end
:
end
+
1
]
==
'('
:
results
.
append
(
self
.
namelink
(
name
,
methods
,
funcs
,
classes
))
results
.
append
(
self
.
namelink
(
name
,
methods
,
funcs
,
classes
))
elif
selfdot
:
elif
selfdot
:
results
.
append
(
'self.<s
pan class="selfdot">
%
s</span
>'
%
name
)
results
.
append
(
'self.<s
trong>
%
s</strong
>'
%
name
)
else
:
else
:
results
.
append
(
self
.
namelink
(
name
,
classes
))
results
.
append
(
self
.
namelink
(
name
,
classes
))
here
=
end
here
=
end
...
@@ -557,14 +557,14 @@ class HTMLDoc(Doc):
...
@@ -557,14 +557,14 @@ class HTMLDoc(Doc):
for
entry
in
tree
:
for
entry
in
tree
:
if
type
(
entry
)
is
type
(()):
if
type
(
entry
)
is
type
(()):
c
,
bases
=
entry
c
,
bases
=
entry
result
=
result
+
'<dt
class="classlink
">'
result
=
result
+
'<dt
><font face="helvetica, arial
">'
result
=
result
+
self
.
classlink
(
c
,
modname
)
result
=
result
+
self
.
classlink
(
c
,
modname
)
if
bases
and
bases
!=
(
parent
,):
if
bases
and
bases
!=
(
parent
,):
parents
=
[]
parents
=
[]
for
base
in
bases
:
for
base
in
bases
:
parents
.
append
(
self
.
classlink
(
base
,
modname
))
parents
.
append
(
self
.
classlink
(
base
,
modname
))
result
=
result
+
'('
+
', '
.
join
(
parents
)
+
')'
result
=
result
+
'('
+
', '
.
join
(
parents
)
+
')'
result
=
result
+
'
\n
</dt>'
result
=
result
+
'
\n
</
font></
dt>'
elif
type
(
entry
)
is
type
([]):
elif
type
(
entry
)
is
type
([]):
result
=
result
+
'<dd>
\n
%
s</dd>
\n
'
%
self
.
formattree
(
result
=
result
+
'<dd>
\n
%
s</dd>
\n
'
%
self
.
formattree
(
entry
,
modname
,
c
)
entry
,
modname
,
c
)
...
@@ -581,10 +581,10 @@ class HTMLDoc(Doc):
...
@@ -581,10 +581,10 @@ class HTMLDoc(Doc):
links
=
[]
links
=
[]
for
i
in
range
(
len
(
parts
)
-
1
):
for
i
in
range
(
len
(
parts
)
-
1
):
links
.
append
(
links
.
append
(
'<a href="
%
s.html"
class="links">
%
s
</a>'
%
'<a href="
%
s.html"
><font color="#ffffff">
%
s</font>
</a>'
%
(
'.'
.
join
(
parts
[:
i
+
1
]),
parts
[
i
]))
(
'.'
.
join
(
parts
[:
i
+
1
]),
parts
[
i
]))
linkedname
=
'.'
.
join
(
links
+
parts
[
-
1
:])
linkedname
=
'.'
.
join
(
links
+
parts
[
-
1
:])
head
=
'<
span class="linkedname">
%
s</span
>'
%
linkedname
head
=
'<
big><big><strong>
%
s</strong></big></big
>'
%
linkedname
try
:
try
:
path
=
inspect
.
getabsfile
(
object
)
path
=
inspect
.
getabsfile
(
object
)
url
=
path
url
=
path
...
...
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