summaryrefslogtreecommitdiff
path: root/coverage/backward.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2019-11-03 13:59:07 -0500
committerNed Batchelder <ned@nedbatchelder.com>2019-11-03 21:27:42 -0500
commit9c04f2d6c4dd4e1bda5fae1e58c9aad846881024 (patch)
treee3120a2caefc141a7b09225aa8e2f40ffb60f939 /coverage/backward.py
parent25311c6caabed2f13da991dae52352c3c896a3e9 (diff)
downloadpython-coveragepy-git-9c04f2d6c4dd4e1bda5fae1e58c9aad846881024.tar.gz
A better way to import optional modules
Diffstat (limited to 'coverage/backward.py')
-rw-r--r--coverage/backward.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/coverage/backward.py b/coverage/backward.py
index e051fa55..17f04219 100644
--- a/coverage/backward.py
+++ b/coverage/backward.py
@@ -3,7 +3,7 @@
"""Add things to old Pythons so I can pretend they are newer."""
-# This file does tricky stuff, so disable a pylint warning.
+# This file's purpose is to provide modules to be imported from here.
# pylint: disable=unused-import
import os
@@ -27,11 +27,6 @@ try:
except ImportError:
import configparser
-try:
- import toml
-except ImportError:
- toml = None
-
# What's a string called?
try:
string_class = basestring