Use ConfigParser instead of SafeConfigParser

The SafeConfigParser class has been renamed to ConfigParser in Python
3.2 [1]. This alias will be removed in future versions.So we can use
ConfigParser directly instead.

[1] http://bugs.python.org/issue10627

Closes-Bug: #1618666
Change-Id: If01186cefad2149d65ffcc1fc6550d72d26f5b11
This commit is contained in:
xianming mao 2016-09-11 16:58:13 +08:00 committed by Steve Martinelli
parent bf5711ef02
commit 408820cbe3

View File

@ -133,7 +133,7 @@ class SupportMatrixDirective(rst.Directive):
:returns: SupportMatrix instance
"""
cfg = configparser.SafeConfigParser()
cfg = configparser.ConfigParser()
env = self.state.document.settings.env
fname = self.arguments[0]
rel_fpath, fpath = env.relfn2path(fname)