diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-12-07 11:44:40 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-12-07 11:44:40 -0500 |
commit | 7a8e4a536be8c6cc8f313e6f0e6b907ffc55b205 (patch) | |
tree | 255bb70064d6cb27684fece751ed2252bc3abacc /setuptools/sandbox.py | |
parent | 727a101b0a76bd93c35b41352b2a52ca261a8cf7 (diff) | |
download | external_python_setuptools-7a8e4a536be8c6cc8f313e6f0e6b907ffc55b205.tar.gz external_python_setuptools-7a8e4a536be8c6cc8f313e6f0e6b907ffc55b205.tar.bz2 external_python_setuptools-7a8e4a536be8c6cc8f313e6f0e6b907ffc55b205.zip |
Normalize whitespace in function signatures
--HG--
extra : histedit_source : 471b9c3fbde309c39492f2a567a26993c1dc94de
Diffstat (limited to 'setuptools/sandbox.py')
-rwxr-xr-x | setuptools/sandbox.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/sandbox.py b/setuptools/sandbox.py index 6dd1ca07..7354e46a 100755 --- a/setuptools/sandbox.py +++ b/setuptools/sandbox.py @@ -220,7 +220,7 @@ class DirectorySandbox(AbstractSandbox): def tmpnam(self): self._violation("tmpnam") - def _ok(self,path): + def _ok(self, path): active = self._active try: self._active = False @@ -235,13 +235,13 @@ class DirectorySandbox(AbstractSandbox): exception_matches = map(filepath.startswith, self._exceptions) return True in exception_matches - def _remap_input(self,operation,path,*args,**kw): + def _remap_input(self, operation, path, *args, **kw): """Called for path inputs""" if operation in self.write_ops and not self._ok(path): self._violation(operation, os.path.realpath(path), *args, **kw) return path - def _remap_pair(self,operation,src,dst,*args,**kw): + def _remap_pair(self, operation, src, dst, *args, **kw): """Called for path pairs like rename, link, and symlink operations""" if not self._ok(src) or not self._ok(dst): self._violation(operation, src, dst, *args, **kw) |