summaryrefslogtreecommitdiff
path: root/coverage/backward.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/backward.py')
-rw-r--r--coverage/backward.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/coverage/backward.py b/coverage/backward.py
index 34ab2f1a..58759545 100644
--- a/coverage/backward.py
+++ b/coverage/backward.py
@@ -64,6 +64,11 @@ except ImportError:
# in Python versions earlier than 3.3.
from pipes import quote as shlex_quote
+try:
+ import reprlib
+except ImportError:
+ import repr as reprlib
+
# A function to iterate listlessly over a dict's items, and one to get the
# items as a list.
try: