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
f54a63b3
Kaydet (Commit)
f54a63b3
authored
Ara 11, 2006
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Move errno imports back to individual functions.
üst
0adf0846
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
os.py
Lib/os.py
+3
-2
No files found.
Lib/os.py
Dosyayı görüntüle @
f54a63b3
...
...
@@ -25,8 +25,6 @@ and opendir), and leave all pathname manipulation to os.path
import
sys
from
errno
import
ENOENT
,
ENOTDIR
,
EEXIST
_names
=
sys
.
builtin_module_names
# Note: more names are added to __all__ later.
...
...
@@ -158,6 +156,7 @@ def makedirs(name, mode=0777):
recursive.
"""
from
errno
import
EEXIST
head
,
tail
=
path
.
split
(
name
)
if
not
tail
:
head
,
tail
=
path
.
split
(
head
)
...
...
@@ -366,6 +365,8 @@ def execvpe(file, args, env):
__all__
.
extend
([
"execl"
,
"execle"
,
"execlp"
,
"execlpe"
,
"execvp"
,
"execvpe"
])
def
_execvpe
(
file
,
args
,
env
=
None
):
from
errno
import
ENOENT
,
ENOTDIR
if
env
is
not
None
:
func
=
execve
argrest
=
(
args
,
env
)
...
...
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