Make Doxylink more compatible with Python3
This commit is contained in:
@ -10,7 +10,7 @@ from docutils import nodes, utils
|
||||
from sphinx.util.nodes import split_explicit_title
|
||||
from sphinx.util.console import bold, standout
|
||||
|
||||
from parsing import normalise, ParseException
|
||||
from .parsing import normalise, ParseException
|
||||
|
||||
def find_url(doc, symbol):
|
||||
"""
|
||||
@ -156,7 +156,7 @@ def parse_tag_file(doc):
|
||||
else:
|
||||
mapping[member_symbol] = {'kind' : kind, 'arglist' : {normalised_arglist : anchor_link}}
|
||||
else:
|
||||
print 'Skipping %s %s%s. Error reported from parser was: %s' % (old_tuple[2], old_tuple[0], old_tuple[1], normalised_tuple[0])
|
||||
print('Skipping %s %s%s. Error reported from parser was: %s' % (old_tuple[2], old_tuple[0], old_tuple[1], normalised_tuple[0]))
|
||||
|
||||
#from pprint import pprint; pprint(mapping)
|
||||
return mapping
|
||||
|
@ -94,7 +94,7 @@ def normalise(symbol):
|
||||
arglist_input_string = arglist_input_string[:closing_bracket_location+1]
|
||||
except ValueError:
|
||||
#This shouldn't happen.
|
||||
print 'Could not find closing bracket in %s' % arglist_input_string
|
||||
print('Could not find closing bracket in %s' % arglist_input_string)
|
||||
raise
|
||||
|
||||
try:
|
||||
|
Reference in New Issue
Block a user