Skip to content
Snippets Groups Projects
Commit a8ba9a23 authored by Augie Fackler's avatar Augie Fackler
Browse files

hgmanpage: stop using raw-unicode strings

These don't exist in Python 3, and this ends up looking a little more
explicit to Martijn and me anyway.
parent 3eb4df6d
No related branches found
No related tags found
No related merge requests found
......@@ -288,10 +288,10 @@
text = node.astext()
text = text.replace('\\','\\e')
replace_pairs = [
(u'-', ur'\-'),
(u'\'', ur'\(aq'),
(u'´', ur'\''),
(u'`', ur'\(ga'),
(u'-', u'\\-'),
(u"'", u'\\(aq'),
(u'´', u"\\'"),
(u'`', u'\\(ga'),
]
for (in_char, out_markup) in replace_pairs:
text = text.replace(in_char, out_markup)
......
......@@ -16,7 +16,6 @@
$ hg files 'set:(**.py) - grep(pygments)' | sed 's|\\|/|g' \
> | xargs $PYTHON3 contrib/check-py3-compat.py \
> | sed 's/[0-9][0-9]*)$/*)/'
doc/hgmanpage.py: invalid syntax: invalid syntax (<unknown>, line *)
hgext/acl.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*)
hgext/automv.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*)
hgext/blackbox.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment