diff options
author | stepshal <nessento@openmailbox.org> | 2016-07-12 22:00:43 +0700 |
---|---|---|
committer | stepshal <nessento@openmailbox.org> | 2016-07-13 06:00:42 +0700 |
commit | 6d11e88f938f09ef16db4c6064b6e74acba4db1d (patch) | |
tree | 18b8d914a2c4fc9f9e00d75a5b30330bb0d1942a /setuptools/py31compat.py | |
parent | e3e21fd3d608d72ebe1ba2e4d2b3a59fbca76554 (diff) | |
download | external_python_setuptools-6d11e88f938f09ef16db4c6064b6e74acba4db1d.tar.gz external_python_setuptools-6d11e88f938f09ef16db4c6064b6e74acba4db1d.tar.bz2 external_python_setuptools-6d11e88f938f09ef16db4c6064b6e74acba4db1d.zip |
Fix quantity of blank lines after code object.
Diffstat (limited to 'setuptools/py31compat.py')
-rw-r--r-- | setuptools/py31compat.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/setuptools/py31compat.py b/setuptools/py31compat.py index 8fe6dd9d..04a314ef 100644 --- a/setuptools/py31compat.py +++ b/setuptools/py31compat.py @@ -8,6 +8,7 @@ try: from sysconfig import get_config_vars, get_path except ImportError: from distutils.sysconfig import get_config_vars, get_python_lib + def get_path(name): if name not in ('platlib', 'purelib'): raise ValueError("Name must be purelib or platlib") @@ -19,12 +20,14 @@ try: except ImportError: import shutil import tempfile + class TemporaryDirectory(object): """ Very simple temporary directory context manager. Will try to delete afterward, but will also ignore OS and similar errors on deletion. """ + def __init__(self): self.name = None # Handle mkdtemp raising an exception self.name = tempfile.mkdtemp() |