From cca86c7f1d4040834c3265ccecdd9e21b4036df5 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 3 Jun 2018 09:50:25 -0400 Subject: Use Python 3 syntax for new-style clasess --- setuptools/py31compat.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'setuptools/py31compat.py') 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 -- cgit v1.2.1