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
50fdcdf0
Kaydet (Commit)
50fdcdf0
authored
Mar 04, 2012
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix encoding handling of the pydoc-topics writer.
üst
c0eaecaf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
pyspecific.py
Doc/tools/sphinxext/pyspecific.py
+3
-2
No files found.
Doc/tools/sphinxext/pyspecific.py
Dosyayı görüntüle @
50fdcdf0
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
Sphinx extension with Python doc-specific markup.
Sphinx extension with Python doc-specific markup.
:copyright: 2008, 2009, 2010 by Georg Brandl.
:copyright: 2008, 2009, 2010
, 2011, 2012
by Georg Brandl.
:license: Python license.
:license: Python license.
"""
"""
...
@@ -201,11 +201,12 @@ class PydocTopicsBuilder(Builder):
...
@@ -201,11 +201,12 @@ class PydocTopicsBuilder(Builder):
document
.
append
(
doctree
.
ids
[
labelid
])
document
.
append
(
doctree
.
ids
[
labelid
])
destination
=
StringOutput
(
encoding
=
'utf-8'
)
destination
=
StringOutput
(
encoding
=
'utf-8'
)
writer
.
write
(
document
,
destination
)
writer
.
write
(
document
,
destination
)
self
.
topics
[
label
]
=
str
(
writer
.
output
)
self
.
topics
[
label
]
=
writer
.
output
.
encode
(
'utf-8'
)
def
finish
(
self
):
def
finish
(
self
):
f
=
open
(
path
.
join
(
self
.
outdir
,
'topics.py'
),
'w'
)
f
=
open
(
path
.
join
(
self
.
outdir
,
'topics.py'
),
'w'
)
try
:
try
:
f
.
write
(
'# -*- coding: utf-8 -*-
\n
'
)
f
.
write
(
'# Autogenerated by Sphinx on
%
s
\n
'
%
asctime
())
f
.
write
(
'# Autogenerated by Sphinx on
%
s
\n
'
%
asctime
())
f
.
write
(
'topics = '
+
pformat
(
self
.
topics
)
+
'
\n
'
)
f
.
write
(
'topics = '
+
pformat
(
self
.
topics
)
+
'
\n
'
)
finally
:
finally
:
...
...
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