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
a5f4c071
Kaydet (Commit)
a5f4c071
authored
Kas 05, 2002
tarafından
Jeremy Hylton
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove use of string module and reflow a couple of long lines.
üst
8f4dcbd3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
sysconfig.py
Lib/distutils/sysconfig.py
+10
-10
No files found.
Lib/distutils/sysconfig.py
Dosyayı görüntüle @
a5f4c071
...
...
@@ -14,7 +14,6 @@ __revision__ = "$Id$"
import
os
import
re
import
string
import
sys
from
errors
import
DistutilsPlatformError
...
...
@@ -213,7 +212,7 @@ def parse_config_h(fp, g=None):
m
=
define_rx
.
match
(
line
)
if
m
:
n
,
v
=
m
.
group
(
1
,
2
)
try
:
v
=
string
.
atoi
(
v
)
try
:
v
=
int
(
v
)
except
ValueError
:
pass
g
[
n
]
=
v
else
:
...
...
@@ -251,11 +250,11 @@ def parse_makefile(fn, g=None):
m
=
_variable_rx
.
match
(
line
)
if
m
:
n
,
v
=
m
.
group
(
1
,
2
)
v
=
string
.
strip
(
v
)
v
=
v
.
strip
(
)
if
"$"
in
v
:
notdone
[
n
]
=
v
else
:
try
:
v
=
string
.
atoi
(
v
)
try
:
v
=
int
(
v
)
except
ValueError
:
pass
done
[
n
]
=
v
...
...
@@ -272,9 +271,9 @@ def parse_makefile(fn, g=None):
if
"$"
in
after
:
notdone
[
name
]
=
value
else
:
try
:
value
=
string
.
atoi
(
value
)
try
:
value
=
int
(
value
)
except
ValueError
:
done
[
name
]
=
string
.
strip
(
value
)
done
[
name
]
=
value
.
strip
(
)
else
:
done
[
name
]
=
value
del
notdone
[
name
]
...
...
@@ -288,9 +287,9 @@ def parse_makefile(fn, g=None):
if
"$"
in
after
:
notdone
[
name
]
=
value
else
:
try
:
value
=
string
.
atoi
(
value
)
try
:
value
=
int
(
value
)
except
ValueError
:
done
[
name
]
=
string
.
strip
(
value
)
done
[
name
]
=
value
.
strip
(
)
else
:
done
[
name
]
=
value
del
notdone
[
name
]
...
...
@@ -369,8 +368,9 @@ def _init_posix():
# relative to the srcdir, which after installation no longer makes
# sense.
python_lib
=
get_python_lib
(
standard_lib
=
1
)
linkerscript_name
=
os
.
path
.
basename
(
string
.
split
(
g
[
'LDSHARED'
])[
0
])
linkerscript
=
os
.
path
.
join
(
python_lib
,
'config'
,
linkerscript_name
)
linkerscript_name
=
os
.
path
.
basename
(
g
[
'LDSHARED'
]
.
split
()[
0
])
linkerscript
=
os
.
path
.
join
(
python_lib
,
'config'
,
linkerscript_name
)
# XXX this isn't the right place to do this: adding the Python
# library to the link, if needed, should be in the "build_ext"
...
...
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