Be safe, don't let friends use RawConfigParser

Replace uses of ConfigParser() and RawConfigParser() with
SafeConfigParser().

Change-Id: I78395eae381e1b911ab6b48c572665f4601ec315
This commit is contained in:
Jeremy Stanley
2015-04-23 18:42:16 +00:00
parent d6b0ca31a1
commit 52fcd502bf
2 changed files with 2 additions and 2 deletions

View File

@@ -201,7 +201,7 @@ def cfg_to_args(path='setup.cfg'):
"""
# The method source code really starts here.
parser = configparser.RawConfigParser()
parser = configparser.SafeConfigParser()
if not os.path.exists(path):
raise DistutilsFileError("file '%s' does not exist" %
os.path.abspath(path))