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
d80506c2
Kaydet (Commit)
d80506c2
authored
Nis 22, 2000
tarafından
Greg Ward
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Merged in code from the 0.1.5 release to handle IOError and OSError
exceptions better.
üst
6a9a545a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
core.py
Lib/distutils/core.py
+12
-6
No files found.
Lib/distutils/core.py
Dosyayı görüntüle @
d80506c2
...
...
@@ -9,7 +9,7 @@ really defined in distutils.dist and distutils.cmd."""
__revision__
=
"$Id$"
import
sys
import
sys
,
os
from
types
import
*
from
distutils.errors
import
*
from
distutils.dist
import
Distribution
...
...
@@ -89,13 +89,19 @@ def setup (**attrs):
dist
.
run_commands
()
except
KeyboardInterrupt
:
raise
SystemExit
,
"interrupted"
except
(
OSError
,
IOE
rror
),
exc
:
#
arg, try to work with Python pre-1.5.2
except
(
IOError
,
os
.
e
rror
),
exc
:
#
check for Python 1.5.2-style {IO,OS}Error exception objects
if
hasattr
(
exc
,
'filename'
)
and
hasattr
(
exc
,
'strerror'
):
raise
SystemExit
,
\
"error:
%
s:
%
s"
%
(
exc
.
filename
,
exc
.
strerror
)
if
exc
.
filename
:
raise
SystemExit
,
\
"error:
%
s:
%
s"
%
(
exc
.
filename
,
exc
.
strerror
)
else
:
# two-argument functions in posix module don't
# include the filename in the exception object!
raise
SystemExit
,
\
"error:
%
s"
%
exc
.
strerror
else
:
raise
SystemExit
,
str
(
exc
)
raise
SystemExit
,
"error: "
+
exc
[
-
1
]
except
(
DistutilsExecError
,
DistutilsFileError
,
DistutilsOptionError
),
msg
:
...
...
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