aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/config.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2018-06-03 09:50:25 -0400
committerJason R. Coombs <jaraco@jaraco.com>2018-06-03 09:50:25 -0400
commitcca86c7f1d4040834c3265ccecdd9e21b4036df5 (patch)
tree6952f93a45a95659d36a93072e915688ca253a85 /setuptools/config.py
parent7068f1d4c86e6d8e705a2b77da6c5dcf6a8d7bcd (diff)
downloadexternal_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/config.py')
-rw-r--r--setuptools/config.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/setuptools/config.py b/setuptools/config.py
index d3f0b123..5f908cf1 100644
--- a/setuptools/config.py
+++ b/setuptools/config.py
@@ -11,6 +11,9 @@ from setuptools.extern.packaging.version import LegacyVersion, parse
from setuptools.extern.six import string_types
+__metaclass__ = type
+
+
def read_configuration(
filepath, find_others=False, ignore_option_errors=False):
"""Read given configuration file and returns options from it as a dict.
@@ -113,7 +116,7 @@ def parse_configuration(
return meta, options
-class ConfigHandler(object):
+class ConfigHandler:
"""Handles metadata supplied in configuration files."""
section_prefix = None