diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-12-29 16:37:39 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-12-29 16:41:17 -0800 |
commit | 4a7d305d220a4081ac7c106199baa940d838ce67 (patch) | |
tree | 97bc74828663b7e3ed09c494eeadda50a3974231 /man | |
parent | 0361517cdebad5b01433bb996e395de39d018a68 (diff) |
Fixed md2man for python3.
Partially addresses #254.
This change makes make_man_page.py work with either python3 or
python2.
The test suite is still dependent on python2, and this should be
changed, but for now this at least makes a build possible.
Diffstat (limited to 'man')
-rw-r--r-- | man/make_man_page.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/man/make_man_page.py b/man/make_man_page.py index a2c8980..2202309 100644 --- a/man/make_man_page.py +++ b/man/make_man_page.py @@ -37,11 +37,11 @@ def md2man(text): if sys.version_info >= (3,0): textbytes = text.encode('utf-8') textlen = len(textbytes) + return render_man(parse_document(textbytes, textlen)).decode('utf-8') else: textbytes = text textlen = len(text) - return render_man(parse_document(textbytes, textlen)) - + return render_man(parse_document(textbytes, textlen)) comment_start_re = re.compile('^\/\*\* ?') comment_delim_re = re.compile('^[/ ]\** ?') |