From 88f75ee760bb92e51fc64c3805a73b8be896e641 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Wed, 8 Jan 2014 22:37:22 -0500 Subject: Address various depreciated APIs in Python This mostly revolves around old APIs for ElementTree, but includes a few others as well. Fixes #254. Thanks for the report. --- tests/util.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/util.py b/tests/util.py index bbf7aea..0f416fb 100644 --- a/tests/util.py +++ b/tests/util.py @@ -1,16 +1,16 @@ import sys if sys.version_info[0] == 3: - from configparser import SafeConfigParser + from configparser import ConfigParser else: - from ConfigParser import SafeConfigParser + from ConfigParser import SafeConfigParser as ConfigParser class MarkdownSyntaxError(Exception): pass -class CustomConfigParser(SafeConfigParser): +class CustomConfigParser(ConfigParser): def get(self, section, option): - value = SafeConfigParser.get(self, section, option) + value = ConfigParser.get(self, section, option) if option == 'extensions': if len(value.strip()): return value.split(',') -- cgit v1.2.3