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
f23431da
Kaydet (Commit)
f23431da
authored
Eki 05, 2000
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
New script to convert the ACKS file to a nicely formatted HTML file.
Uses the new support module.
üst
01a110be
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
0 deletions
+62
-0
mkackshtml
Doc/tools/mkackshtml
+62
-0
No files found.
Doc/tools/mkackshtml
0 → 100755
Dosyayı görüntüle @
f23431da
#! /usr/bin/env python
# -*- Python -*-
import
support
import
sys
def
collect
(
fp
):
names
=
[]
while
1
:
line
=
fp
.
readline
()
if
not
line
:
break
line
=
line
.
strip
()
if
line
:
names
.
append
(
line
)
else
:
names
=
[]
return
names
def
main
():
options
=
support
.
Options
()
options
.
columns
=
4
options
.
variables
[
"title"
]
=
"Acknowledgements"
options
.
parse
(
sys
.
argv
[
1
:])
names
=
collect
(
sys
.
stdin
)
percol
=
(
len
(
names
)
+
options
.
columns
-
1
)
/
options
.
columns
colnums
=
[
percol
*
i
for
i
in
range
(
options
.
columns
)]
fp
=
options
.
get_output_file
()
print
>>
fp
,
options
.
get_header
()
.
rstrip
()
print
>>
fp
,
THANKS
print
>>
fp
,
'<table width="100
%
" align="center">'
for
i
in
range
(
percol
):
print
>>
fp
,
" <tr>"
for
j
in
colnums
:
try
:
print
>>
fp
,
" <td>
%
s</td>"
%
names
[
i
+
j
]
except
IndexError
:
print
>>
fp
,
" <td> </td>"
print
>>
fp
,
" </tr>"
print
>>
fp
,
"</table>"
print
>>
fp
,
options
.
get_footer
()
.
rstrip
()
THANKS
=
'''
\
<p>These people have contributed in some way to the Python
documentation. This list is probably not complete -- if you feel that
you or anyone else should be on this list, please let us know (send
email to <a
href="mailto:python-docs@python.org">python-docs@python.org</a>), and
we will be glad to correct the problem.</p>
<p>It is only with the input and contributions of the Python community
that Python has such wonderful documentation -- <b>Thank You!</b></p>
'''
if
__name__
==
"__main__"
:
main
()
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