doxygen-link: Be python3 compatible

Reported-by: Teto <mattator@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
This commit is contained in:
Thomas Graf 2013-10-22 16:32:23 +02:00
parent 74db300236
commit 72bf363654

View file

@ -17,4 +17,4 @@ def translate(match):
rc = re.compile('|'.join(map(re.escape, sorted(links, reverse=True))))
for line in open(sys.argv[2], 'r'):
print rc.sub(translate, line),
print(rc.sub(translate, line))