Merge "Use ConfigParser instead of SafeConfigParser in Python 3"

This commit is contained in:
Jenkins 2017-03-10 16:35:18 +00:00 committed by Gerrit Code Review
commit a73a050b7f
1 changed files with 4 additions and 2 deletions

View File

@ -128,8 +128,10 @@ class SupportMatrixDirective(rst.Directive):
:returns: SupportMatrix instance :returns: SupportMatrix instance
""" """
if six.PY3:
cfg = configparser.SafeConfigParser() cfg = configparser.ConfigParser()
else:
cfg = configparser.SafeConfigParser()
env = self.state.document.settings.env env = self.state.document.settings.env
fname = self.arguments[0] fname = self.arguments[0]
rel_fpath, fpath = env.relfn2path(fname) rel_fpath, fpath = env.relfn2path(fname)