aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2014-01-08 22:37:22 -0500
committerWaylan Limberg <waylan@gmail.com>2014-01-08 22:37:22 -0500
commit88f75ee760bb92e51fc64c3805a73b8be896e641 (patch)
treea66a466a31e6153cab0871d7047dbbf675e7ea4e /tests
parent809195fb900c8e8bd3ff65a2e69de78075224096 (diff)
downloadmarkdown-88f75ee760bb92e51fc64c3805a73b8be896e641.tar.gz
markdown-88f75ee760bb92e51fc64c3805a73b8be896e641.tar.bz2
markdown-88f75ee760bb92e51fc64c3805a73b8be896e641.zip
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/util.py8
1 files changed, 4 insertions, 4 deletions
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(',')