diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-14 21:40:02 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-14 21:40:02 -0500 |
commit | 9948d3c8a7880cbc13012e8a3fedda130614601d (patch) | |
tree | 3696eeed4b2d8d2a63033c08d7856e2fd3ca23e9 | |
parent | a33a5ba6ed5be3affc10fd0e789799b7490d2053 (diff) | |
download | external_python_setuptools-9948d3c8a7880cbc13012e8a3fedda130614601d.tar.gz external_python_setuptools-9948d3c8a7880cbc13012e8a3fedda130614601d.tar.bz2 external_python_setuptools-9948d3c8a7880cbc13012e8a3fedda130614601d.zip |
Make attributes private and remove redundant naming.
-rwxr-xr-x | setuptools/sandbox.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/setuptools/sandbox.py b/setuptools/sandbox.py index 37d89a2a..0847ef41 100755 --- a/setuptools/sandbox.py +++ b/setuptools/sandbox.py @@ -105,9 +105,9 @@ class ExceptionSaver: return # dump the exception - self.saved_type = pickle.dumps(type) - self.saved_exc = pickle.dumps(exc) - self.tb = tb + self._type = pickle.dumps(type) + self._exc = pickle.dumps(exc) + self._tb = tb # suppress the exception return True @@ -115,12 +115,12 @@ class ExceptionSaver: def resume(self): "restore and re-raise any exception" - if 'saved_exc' not in vars(self): + if '_exc' not in vars(self): return - type = pickle.loads(self.saved_type) - exc = pickle.loads(self.saved_exc) - compat.reraise(type, exc, self.tb) + type = pickle.loads(self._type) + exc = pickle.loads(self._exc) + compat.reraise(type, exc, self._tb) @contextlib.contextmanager |