summaryrefslogtreecommitdiff
path: root/coverage/backward.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-11-28 17:30:59 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-11-28 17:30:59 -0500
commit49ede2bdf54a12e4eaa9472785cc5544040c077a (patch)
tree47a85e29d5b3232c777173df0fc494987c66516f /coverage/backward.py
parentc975721a9cea8716849b1f01a6007d3c3dd3a5fa (diff)
downloadpython-coveragepy-git-49ede2bdf54a12e4eaa9472785cc5544040c077a.tar.gz
Test the config file support.
--HG-- branch : config
Diffstat (limited to 'coverage/backward.py')
-rw-r--r--coverage/backward.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/coverage/backward.py b/coverage/backward.py
index 66cfbb96..624daa2c 100644
--- a/coverage/backward.py
+++ b/coverage/backward.py
@@ -70,3 +70,10 @@ def exec_function(source, filename, global_map):
""",
"<exec_function>", "exec"
))
+
+# ConfigParser was renamed to the more-standard configparser
+
+try:
+ import configparser
+except ImportError:
+ import ConfigParser as configparser