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
2b042ded
Kaydet (Commit)
2b042ded
authored
Agu 08, 2000
tarafından
Greg Ward
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix so 'split_quoted()' handles any whitespace delimiter (not just space).
üst
e5034378
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
util.py
Lib/distutils/util.py
+2
-2
No files found.
Lib/distutils/util.py
Dosyayı görüntüle @
2b042ded
...
...
@@ -139,7 +139,7 @@ def grok_environment_error (exc, prefix="error: "):
# Needed by 'split_quoted()'
_wordchars_re
=
re
.
compile
(
r'[^\\\'\"
\ ]*'
)
_wordchars_re
=
re
.
compile
(
r'[^\\\'\"
%
s ]*'
%
string
.
whitespace
)
_squote_re
=
re
.
compile
(
r"'(?:[^'\\]|\\.)*'"
)
_dquote_re
=
re
.
compile
(
r'"(?:[^"\\]|\\.)*"'
)
...
...
@@ -169,7 +169,7 @@ def split_quoted (s):
words
.
append
(
s
[:
end
])
break
if
s
[
end
]
==
' '
:
# unescaped, unquoted
space: now
if
s
[
end
]
in
string
.
whitespace
:
# unescaped, unquoted white
space: now
words
.
append
(
s
[:
end
])
# we definitely have a word delimiter
s
=
string
.
lstrip
(
s
[
end
:])
pos
=
0
...
...
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