Merge "Remove logic for Python < 3.2"

This commit is contained in:
Zuul 2022-07-19 16:40:58 +00:00 committed by Gerrit Code Review
commit ad3bdad7b7
1 changed files with 1 additions and 6 deletions

View File

@ -23,7 +23,6 @@ It is used via a single directive in the .rst file
"""
import configparser as config_parser
import os
import sys
from docutils import nodes
from docutils.parsers import rst
@ -96,11 +95,7 @@ class SupportMatrixDirective(rst.Directive):
:returns: SupportMatrix instance
"""
# SafeConfigParser was deprecated in Python 3.2
if sys.version_info >= (3, 2):
cfg = config_parser.ConfigParser()
else:
cfg = config_parser.SafeConfigParser()
cfg = config_parser.ConfigParser()
env = self.state.document.settings.env
fname = self.options.get("support-matrix",
"support-matrix.ini")