diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2018-06-03 09:50:25 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2018-06-03 09:50:25 -0400 |
| commit | cca86c7f1d4040834c3265ccecdd9e21b4036df5 (patch) | |
| tree | 6952f93a45a95659d36a93072e915688ca253a85 /setuptools/py31compat.py | |
| parent | 7068f1d4c86e6d8e705a2b77da6c5dcf6a8d7bcd (diff) | |
| download | python-setuptools-git-cca86c7f1d4040834c3265ccecdd9e21b4036df5.tar.gz | |
Use Python 3 syntax for new-style clasess
Diffstat (limited to 'setuptools/py31compat.py')
| -rw-r--r-- | setuptools/py31compat.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/setuptools/py31compat.py b/setuptools/py31compat.py index 3aecf74e..1a0705ec 100644 --- a/setuptools/py31compat.py +++ b/setuptools/py31compat.py @@ -1,5 +1,8 @@ __all__ = [] +__metaclass__ = type + + try: # Python >=3.2 from tempfile import TemporaryDirectory @@ -7,7 +10,7 @@ except ImportError: import shutil import tempfile - class TemporaryDirectory(object): + class TemporaryDirectory: """ Very simple temporary directory context manager. Will try to delete afterward, but will also ignore OS and similar |
