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
197f0447
Unverified
Kaydet (Commit)
197f0447
authored
Nis 17, 2019
tarafından
Victor Stinner
Kaydeden (comit)
GitHub
Nis 17, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-35755: Don't say "to mimick Unix which command behavior" (GH-12861)
üst
693c104a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
spawn.py
Lib/distutils/spawn.py
+1
-1
shutil.py
Lib/shutil.py
+1
-1
2019-04-16-17-50-39.bpo-35755.Fg4EXb.rst
...S.d/next/Library/2019-04-16-17-50-39.bpo-35755.Fg4EXb.rst
+1
-2
No files found.
Lib/distutils/spawn.py
Dosyayı görüntüle @
197f0447
...
...
@@ -188,7 +188,7 @@ def find_executable(executable, path=None):
# os.confstr() or CS_PATH is not available
path
=
os
.
defpath
# bpo-35755: Don't use os.defpath if the PATH environment variable is
# set to an empty string
to mimick Unix which command behavior
# set to an empty string
# PATH='' doesn't match, whereas PATH=':' looks in the current directory
if
not
path
:
...
...
Lib/shutil.py
Dosyayı görüntüle @
197f0447
...
...
@@ -1317,7 +1317,7 @@ def which(cmd, mode=os.F_OK | os.X_OK, path=None):
# os.confstr() or CS_PATH is not available
path
=
os
.
defpath
# bpo-35755: Don't use os.defpath if the PATH environment variable is
# set to an empty string
to mimick Unix which command behavior
# set to an empty string
# PATH='' doesn't match, whereas PATH=':' looks in the current directory
if
not
path
:
...
...
Misc/NEWS.d/next/Library/2019-04-16-17-50-39.bpo-35755.Fg4EXb.rst
Dosyayı görüntüle @
197f0447
...
...
@@ -2,5 +2,4 @@
``os.confstr("CS_PATH")`` if available instead of :data:`os.defpath`, if the
``PATH`` environment variable is not set. Moreover, don't use
``os.confstr("CS_PATH")`` nor :data:`os.defpath` if the ``PATH`` environment
variable is set to an empty string to mimick Unix ``which`` command
behavior.
variable is set to an empty string.
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