Merge "Use ConfigParser instead of SafeConfigParser"

This commit is contained in:
Jenkins 2016-10-04 03:23:50 +00:00 committed by Gerrit Code Review
commit bedd17add9

View File

@ -19,6 +19,7 @@ import collections
import errno
import io
import os
from six.moves import configparser
from parsley import makeGrammar
@ -57,7 +58,7 @@ def extras(project):
"""Return a dict of extra-name:content for the extras in setup.cfg."""
if 'setup.cfg' not in project:
return {}
c = configparser.SafeConfigParser()
c = configparser.ConfigParser()
c.readfp(io.StringIO(project['setup.cfg']))
if not c.has_section('extras'):
return {}