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
d0dcbc4b
Kaydet (Commit)
d0dcbc4b
authored
Ock 07, 2008
tarafından
Facundo Batista
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Backport of issue 1755179 fix.
üst
6e3e6e0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
os.py
Lib/os.py
+3
-6
No files found.
Lib/os.py
Dosyayı görüntüle @
d0dcbc4b
...
@@ -23,7 +23,7 @@ and opendir), and leave all pathname manipulation to os.path
...
@@ -23,7 +23,7 @@ and opendir), and leave all pathname manipulation to os.path
#'
#'
import
sys
import
sys
,
errno
_names
=
sys
.
builtin_module_names
_names
=
sys
.
builtin_module_names
...
@@ -156,7 +156,6 @@ def makedirs(name, mode=0777):
...
@@ -156,7 +156,6 @@ def makedirs(name, mode=0777):
recursive.
recursive.
"""
"""
from
errno
import
EEXIST
head
,
tail
=
path
.
split
(
name
)
head
,
tail
=
path
.
split
(
name
)
if
not
tail
:
if
not
tail
:
head
,
tail
=
path
.
split
(
head
)
head
,
tail
=
path
.
split
(
head
)
...
@@ -165,7 +164,7 @@ def makedirs(name, mode=0777):
...
@@ -165,7 +164,7 @@ def makedirs(name, mode=0777):
makedirs
(
head
,
mode
)
makedirs
(
head
,
mode
)
except
OSError
,
e
:
except
OSError
,
e
:
# be happy if someone already created the path
# be happy if someone already created the path
if
e
.
errno
!=
EEXIST
:
if
e
.
errno
!=
errno
.
EEXIST
:
raise
raise
if
tail
==
curdir
:
# xxx/newdir/. exists if xxx/newdir exists
if
tail
==
curdir
:
# xxx/newdir/. exists if xxx/newdir exists
return
return
...
@@ -365,8 +364,6 @@ def execvpe(file, args, env):
...
@@ -365,8 +364,6 @@ def execvpe(file, args, env):
__all__
.
extend
([
"execl"
,
"execle"
,
"execlp"
,
"execlpe"
,
"execvp"
,
"execvpe"
])
__all__
.
extend
([
"execl"
,
"execle"
,
"execlp"
,
"execlpe"
,
"execvp"
,
"execvpe"
])
def
_execvpe
(
file
,
args
,
env
=
None
):
def
_execvpe
(
file
,
args
,
env
=
None
):
from
errno
import
ENOENT
,
ENOTDIR
if
env
is
not
None
:
if
env
is
not
None
:
func
=
execve
func
=
execve
argrest
=
(
args
,
env
)
argrest
=
(
args
,
env
)
...
@@ -392,7 +389,7 @@ def _execvpe(file, args, env=None):
...
@@ -392,7 +389,7 @@ def _execvpe(file, args, env=None):
func
(
fullname
,
*
argrest
)
func
(
fullname
,
*
argrest
)
except
error
,
e
:
except
error
,
e
:
tb
=
sys
.
exc_info
()[
2
]
tb
=
sys
.
exc_info
()[
2
]
if
(
e
.
errno
!=
ENOENT
and
e
.
errno
!=
ENOTDIR
if
(
e
.
errno
!=
errno
.
ENOENT
and
e
.
errno
!=
errno
.
ENOTDIR
and
saved_exc
is
None
):
and
saved_exc
is
None
):
saved_exc
=
e
saved_exc
=
e
saved_tb
=
tb
saved_tb
=
tb
...
...
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