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
354166fa
Kaydet (Commit)
354166fa
authored
Agu 25, 1992
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Changed to use regex directly instead of regexp.
üst
9022fcea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
flp.py
Lib/irix5/flp.py
+4
-3
flp.py
Lib/plat-irix5/flp.py
+4
-3
No files found.
Lib/irix5/flp.py
Dosyayı görüntüle @
354166fa
...
@@ -250,12 +250,13 @@ _parse_func = { \
...
@@ -250,12 +250,13 @@ _parse_func = { \
# This function parses a line, and returns either
# This function parses a line, and returns either
# a string or a tuple (name,value)
# a string or a tuple (name,value)
import
regexp
import
regex
prog
=
regex
.
compile
(
'^
\
([^:]*
\
): *
\
(.*
\
)'
)
def
_parse_line
(
line
):
def
_parse_line
(
line
):
a
=
regexp
.
match
(
'^([^:]*): *(.*)'
,
line
)
if
prog
.
match
(
line
)
<
0
:
if
not
a
:
return
line
return
line
a
=
prog
.
regs
name
=
line
[:
a
[
1
][
1
]]
name
=
line
[:
a
[
1
][
1
]]
if
name
[
0
]
==
'N'
:
if
name
[
0
]
==
'N'
:
name
=
string
.
joinfields
(
string
.
split
(
name
),
''
)
name
=
string
.
joinfields
(
string
.
split
(
name
),
''
)
...
...
Lib/plat-irix5/flp.py
Dosyayı görüntüle @
354166fa
...
@@ -250,12 +250,13 @@ _parse_func = { \
...
@@ -250,12 +250,13 @@ _parse_func = { \
# This function parses a line, and returns either
# This function parses a line, and returns either
# a string or a tuple (name,value)
# a string or a tuple (name,value)
import
regexp
import
regex
prog
=
regex
.
compile
(
'^
\
([^:]*
\
): *
\
(.*
\
)'
)
def
_parse_line
(
line
):
def
_parse_line
(
line
):
a
=
regexp
.
match
(
'^([^:]*): *(.*)'
,
line
)
if
prog
.
match
(
line
)
<
0
:
if
not
a
:
return
line
return
line
a
=
prog
.
regs
name
=
line
[:
a
[
1
][
1
]]
name
=
line
[:
a
[
1
][
1
]]
if
name
[
0
]
==
'N'
:
if
name
[
0
]
==
'N'
:
name
=
string
.
joinfields
(
string
.
split
(
name
),
''
)
name
=
string
.
joinfields
(
string
.
split
(
name
),
''
)
...
...
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