aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/config.py
diff options
context:
space:
mode:
authoridle sign <idlesign@yandex.ru>2016-12-05 23:15:36 +0700
committeridle sign <idlesign@yandex.ru>2016-12-05 23:15:36 +0700
commit6aae9fb3f2bf222466fc2fd0db5e22760c6239c6 (patch)
treefd2806ecc7ec397989797df6f5b2cf0074dbefd0 /setuptools/config.py
parent163f36449c2b8c19c272414bff0bf80c9f3f2c7d (diff)
downloadexternal_python_setuptools-6aae9fb3f2bf222466fc2fd0db5e22760c6239c6.tar.gz
external_python_setuptools-6aae9fb3f2bf222466fc2fd0db5e22760c6239c6.tar.bz2
external_python_setuptools-6aae9fb3f2bf222466fc2fd0db5e22760c6239c6.zip
`strict_mode` removed to improve forward compatibility.
Diffstat (limited to 'setuptools/config.py')
-rw-r--r--setuptools/config.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/setuptools/config.py b/setuptools/config.py
index 6459e1de..b2c0cea3 100644
--- a/setuptools/config.py
+++ b/setuptools/config.py
@@ -100,12 +100,6 @@ class ConfigHandler(object):
"""
- strict_mode = True
- """Flag. Whether unknown options in config should
- raise DistutilsOptionError exception, or pass silently.
-
- """
-
def __init__(self, target_obj, options):
sections = {}
@@ -316,9 +310,7 @@ class ConfigHandler(object):
self[name] = value
except KeyError:
- if self.strict_mode:
- raise DistutilsOptionError(
- 'Unknown distribution option: %s' % name)
+ pass # Keep silent for a new option may appear anytime.
def parse(self):
"""Parses configuration file items from one