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
5c0ebdcb
Kaydet (Commit)
5c0ebdcb
authored
Kas 05, 2004
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
- make the default image type PNG, to match mkhowto
- add a command-line option to control the image type
üst
2cf5e192
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
support.py
Doc/tools/support.py
+6
-2
No files found.
Doc/tools/support.py
Dosyayı görüntüle @
5c0ebdcb
...
@@ -20,7 +20,9 @@ class Options:
...
@@ -20,7 +20,9 @@ class Options:
# content components
# content components
"address="
,
"iconserver="
,
"favicon="
,
"address="
,
"iconserver="
,
"favicon="
,
"title="
,
"uplink="
,
"uptitle="
]
"title="
,
"uplink="
,
"uptitle="
,
"image-type="
,
]
outputfile
=
"-"
outputfile
=
"-"
columns
=
1
columns
=
1
...
@@ -51,7 +53,7 @@ class Options:
...
@@ -51,7 +53,7 @@ class Options:
self
.
args
=
[]
self
.
args
=
[]
self
.
variables
=
{
"address"
:
""
,
self
.
variables
=
{
"address"
:
""
,
"iconserver"
:
"icons"
,
"iconserver"
:
"icons"
,
"imgtype"
:
"
gif
"
,
"imgtype"
:
"
png
"
,
"title"
:
"Global Module Index"
,
"title"
:
"Global Module Index"
,
}
}
...
@@ -93,6 +95,8 @@ class Options:
...
@@ -93,6 +95,8 @@ class Options:
self
.
variables
[
"iconserver"
]
=
val
.
strip
()
or
"."
self
.
variables
[
"iconserver"
]
=
val
.
strip
()
or
"."
elif
opt
==
"--favicon"
:
elif
opt
==
"--favicon"
:
self
.
favicon
=
val
.
strip
()
self
.
favicon
=
val
.
strip
()
elif
opt
==
"--image-type"
:
self
.
variables
[
"imgtype"
]
=
val
.
strip
()
else
:
else
:
self
.
handle_option
(
opt
,
val
)
self
.
handle_option
(
opt
,
val
)
if
self
.
uplink
and
self
.
uptitle
:
if
self
.
uplink
and
self
.
uptitle
:
...
...
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