Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
8b891e18
Commit
8b891e18
authored
Jan 06, 2008
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix more exception slicing.
parent
2f672dbe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
file_util.py
file_util.py
+1
-1
spawn.py
spawn.py
+3
-3
No files found.
file_util.py
View file @
8b891e18
...
...
@@ -139,7 +139,7 @@ def copy_file(src, dst, preserve_mode=1, preserve_times=1, update=0,
macostools
.
copy
(
src
,
dst
,
0
,
preserve_times
)
except
os
.
error
as
exc
:
raise
DistutilsFileError
(
"could not copy '%s' to '%s': %s"
%
(
src
,
dst
,
exc
[
-
1
]))
"could not copy '%s' to '%s': %s"
%
(
src
,
dst
,
exc
.
args
[
-
1
]))
# If linking (hard or symbolic), use the appropriate system call
# (Unix only, of course, but that's the caller's responsibility)
...
...
spawn.py
View file @
8b891e18
...
...
@@ -67,7 +67,7 @@ def _spawn_nt(cmd, search_path=1, verbose=0, dry_run=0):
except
OSError
as
exc
:
# this seems to happen when the command isn't found
raise
DistutilsExecError
(
"command '%s' failed: %s"
%
(
cmd
[
0
],
exc
[
-
1
]))
"command '%s' failed: %s"
%
(
cmd
[
0
],
exc
.
args
[
-
1
]))
if
rc
!=
0
:
# and this reflects the command running but failing
raise
DistutilsExecError
(
...
...
@@ -88,7 +88,7 @@ def _spawn_os2(cmd, search_path=1, verbose=0, dry_run=0):
except
OSError
as
exc
:
# this seems to happen when the command isn't found
raise
DistutilsExecError
(
"command '%s' failed: %s"
%
(
cmd
[
0
],
exc
[
-
1
]))
"command '%s' failed: %s"
%
(
cmd
[
0
],
exc
.
args
[
-
1
]))
if
rc
!=
0
:
# and this reflects the command running but failing
print
(
"command '%s' failed with exit status %d"
%
(
cmd
[
0
],
rc
))
...
...
@@ -124,7 +124,7 @@ def _spawn_posix(cmd, search_path=1, verbose=0, dry_run=0):
if
exc
.
errno
==
errno
.
EINTR
:
continue
raise
DistutilsExecError
(
"command '%s' failed: %s"
%
(
cmd
[
0
],
exc
[
-
1
]))
"command '%s' failed: %s"
%
(
cmd
[
0
],
exc
.
args
[
-
1
]))
if
os
.
WIFSIGNALED
(
status
):
raise
DistutilsExecError
(
"command '%s' terminated by signal %d"
...
...
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