summaryrefslogtreecommitdiff
path: root/textutils.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-11-25 14:27:28 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2010-11-25 14:27:28 +0100
commit312f32abac70c8fd3e1fe13b75dcb61121dd8808 (patch)
treeb2ae909e068b3bdfa3801e72badb7e5a2e893fbd /textutils.py
parent3efbd51c55e6a4791aa79f84606417113050aede (diff)
downloadlogilab-common-312f32abac70c8fd3e1fe13b75dcb61121dd8808.tar.gz
py3k: make doctest py3k compatible
Diffstat (limited to 'textutils.py')
-rw-r--r--textutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/textutils.py b/textutils.py
index 5019ebe..4e98e93 100644
--- a/textutils.py
+++ b/textutils.py
@@ -366,7 +366,7 @@ def pretty_match(match, string, underline_char='^'):
"""return a string with the match location underlined:
>>> import re
- >>> print pretty_match(re.search('mange', 'il mange du bacon'), 'il mange du bacon')
+ >>> print(pretty_match(re.search('mange', 'il mange du bacon'), 'il mange du bacon'))
il mange du bacon
^^^^^
>>>