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:

committed by
Steve Martinelli

parent
bf5711ef02
commit
408820cbe3
@@ -133,7 +133,7 @@ class SupportMatrixDirective(rst.Directive):
|
|||||||
|
|
||||||
:returns: SupportMatrix instance
|
:returns: SupportMatrix instance
|
||||||
"""
|
"""
|
||||||
cfg = configparser.SafeConfigParser()
|
cfg = configparser.ConfigParser()
|
||||||
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)
|
||||||
|
Reference in New Issue
Block a user