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/command | |
parent | 7068f1d4c86e6d8e705a2b77da6c5dcf6a8d7bcd (diff) | |
download | external_python_setuptools-cca86c7f1d4040834c3265ccecdd9e21b4036df5.tar.gz external_python_setuptools-cca86c7f1d4040834c3265ccecdd9e21b4036df5.tar.bz2 external_python_setuptools-cca86c7f1d4040834c3265ccecdd9e21b4036df5.zip |
Use Python 3 syntax for new-style clasess
Diffstat (limited to 'setuptools/command')
-rwxr-xr-x | setuptools/command/develop.py | 4 | ||||
-rwxr-xr-x | setuptools/command/easy_install.py | 4 | ||||
-rw-r--r-- | setuptools/command/test.py | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/setuptools/command/develop.py b/setuptools/command/develop.py index 959c932a..fdc9fc43 100755 --- a/setuptools/command/develop.py +++ b/setuptools/command/develop.py @@ -12,6 +12,8 @@ from setuptools.command.easy_install import easy_install from setuptools import namespaces import setuptools +__metaclass__ = type + class develop(namespaces.DevelopInstaller, easy_install): """Set up package for development""" @@ -192,7 +194,7 @@ class develop(namespaces.DevelopInstaller, easy_install): return easy_install.install_wrapper_scripts(self, dist) -class VersionlessRequirement(object): +class VersionlessRequirement: """ Adapt a pkg_resources.Distribution to simply return the project name as the 'requirement' so that scripts will work across diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index a059a0bd..05508ceb 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -63,6 +63,8 @@ from pkg_resources import ( ) import pkg_resources.py31compat +__metaclass__ = type + # Turn on PEP440Warnings warnings.filterwarnings("default", category=pkg_resources.PEP440Warning) @@ -2050,7 +2052,7 @@ class WindowsCommandSpec(CommandSpec): split_args = dict(posix=False) -class ScriptWriter(object): +class ScriptWriter: """ Encapsulates behavior around writing entry point scripts for console and gui apps. diff --git a/setuptools/command/test.py b/setuptools/command/test.py index 51aee1f7..dde0118c 100644 --- a/setuptools/command/test.py +++ b/setuptools/command/test.py @@ -16,6 +16,8 @@ from pkg_resources import (resource_listdir, resource_exists, normalize_path, add_activation_listener, require, EntryPoint) from setuptools import Command +__metaclass__ = type + class ScanningLoader(TestLoader): @@ -58,7 +60,7 @@ class ScanningLoader(TestLoader): # adapted from jaraco.classes.properties:NonDataProperty -class NonDataProperty(object): +class NonDataProperty: def __init__(self, fget): self.fget = fget |