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
093c97a3
Kaydet (Commit)
093c97a3
authored
Şub 24, 1999
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ignore_from_idx(): Fixed bug in regular expression.
üst
684f78fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
listmodules
Doc/tools/listmodules
+3
-3
No files found.
Doc/tools/listmodules
Dosyayı görüntüle @
093c97a3
...
...
@@ -66,7 +66,7 @@ def main():
if
data
[:
1
]
==
"
\\
"
:
ignore_from_idx
(
data
,
ignore_dict
)
else
:
ignore_from_
fi
lelist
(
data
,
ignore_dict
)
ignore_from_
modu
lelist
(
data
,
ignore_dict
)
if
args
or
(
annotate
and
categorize
):
usage
()
sys
.
exit
(
2
)
...
...
@@ -135,13 +135,13 @@ def main():
print
string
.
join
(
modules
,
"
\n
"
)
def
ignore_from_
fi
lelist
(
data
,
ignore_dict
):
def
ignore_from_
modu
lelist
(
data
,
ignore_dict
):
for
name
in
string
.
split
(
data
):
ignore_dict
[
name
]
=
name
def
ignore_from_idx
(
data
,
ignore_dict
):
data
=
string
.
replace
(
data
,
r"\hackscore {}"
,
"_"
)
rx
=
re
.
compile
(
r"\
indexentry
{([^@]*)@"
)
rx
=
re
.
compile
(
r"\
\indexentry\s*
{([^@]*)@"
)
for
line
in
string
.
split
(
data
,
"
\n
"
):
m
=
rx
.
match
(
line
)
if
m
:
...
...
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