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
825fc8be
Kaydet (Commit)
825fc8be
authored
Ock 19, 2008
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#1867: fix a few 3.0 incompatibilities in pydoc.
üst
fceab5a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pydoc.py
Lib/pydoc.py
+3
-3
No files found.
Lib/pydoc.py
Dosyayı görüntüle @
825fc8be
...
...
@@ -1946,9 +1946,9 @@ def serve(port, callback=None, completer=None):
def
send_document
(
self
,
title
,
contents
):
try
:
self
.
send_response
(
200
)
self
.
send_header
(
'Content-Type'
,
'text/html'
)
self
.
send_header
(
'Content-Type'
,
'text/html
; charset=UTF-8
'
)
self
.
end_headers
()
self
.
wfile
.
write
(
html
.
page
(
title
,
contents
))
self
.
wfile
.
write
(
html
.
page
(
title
,
contents
)
.
encode
(
'utf-8'
)
)
except
IOError
:
pass
def
do_GET
(
self
):
...
...
@@ -1974,7 +1974,7 @@ def serve(port, callback=None, completer=None):
return
'<a href="
%
s.html">
%
s</a>'
%
(
name
,
name
)
names
=
filter
(
lambda
x
:
x
!=
'__main__'
,
sys
.
builtin_module_names
)
contents
=
html
.
multicolumn
(
names
,
bltinlink
)
contents
=
html
.
multicolumn
(
list
(
names
)
,
bltinlink
)
indices
=
[
'<p>'
+
html
.
bigsection
(
'Built-in Modules'
,
'#ffffff'
,
'#ee77aa'
,
contents
)]
...
...
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