From f616bd45a4eddda93a5f65decdd5102d88bd880a Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sun, 17 Jul 2022 00:20:16 +0900 Subject: [PATCH] Remove logic for Python < 3.2 Change-Id: If9d4dc59d6663716ac0da61b2a6e3cde7f100e86 --- doc/ext/support_matrix.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/doc/ext/support_matrix.py b/doc/ext/support_matrix.py index 1631d28a9..e0021b2af 100644 --- a/doc/ext/support_matrix.py +++ b/doc/ext/support_matrix.py @@ -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")