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
d48cb39b
Commit
d48cb39b
authored
May 21, 2017
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use new style format strings and expand args to variables for better clarity of purpose.
parent
c96c3ffb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
setuptools/sandbox.py
setuptools/sandbox.py
+3
-2
No files found.
setuptools/sandbox.py
View file @
d48cb39b
...
...
@@ -478,7 +478,7 @@ class SandboxViolation(DistutilsError):
"""
A
setup
script
attempted
to
modify
the
filesystem
outside
the
sandbox
"""
tmpl = textwrap.dedent("""
SandboxViolation
:
%
s
%
r
%
s
SandboxViolation
:
{
cmd
}{
args
!
r
}
{
kwargs
}
The
package
setup
script
has
attempted
to
modify
files
on
your
system
that
are
not
within
the
EasyInstall
build
area
,
and
has
been
aborted
.
...
...
@@ -490,4 +490,5 @@ class SandboxViolation(DistutilsError):
""").lstrip()
def __str__(self):
return self.tmpl % self.args
cmd, args, kwargs = self.args
return self.tmpl.format(**locals())
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