From 7a8e4a536be8c6cc8f313e6f0e6b907ffc55b205 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 7 Dec 2013 11:44:40 -0500 Subject: Normalize whitespace in function signatures --HG-- extra : histedit_source : 471b9c3fbde309c39492f2a567a26993c1dc94de --- setuptools/sandbox.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'setuptools') 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) -- cgit v1.2.3