Skip to content

Commit

Permalink
Merge branch 'master' into sip-4.16
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinD42 committed Mar 20, 2015
2 parents 2ac42ed + 42c661c commit 91110d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def getTool(cmdName, version, MD5, envVar, platformBinary):
try:
p = subprocess.Popen([cmd, '--help'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=os.environ)
p.wait()
except OSError, e:
except OSError as e:
print('ERROR: Could not execute %s, got "%s"' % (cmd, e))
print(' Set %s in the environment to use a local build of %s instead' % (envVar, cmdName))
sys.exit(1)
Expand Down
4 changes: 2 additions & 2 deletions etgtools/sphinx_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1960,7 +1960,7 @@ def __init__(self, xml_item, is_overload=False, share_docstrings=False):
else:
raise Exception('Unhandled docstring kind for %s'%xml_item.__class__.__name__)

if hasattr(xml_item, 'deprecated') and xml_item.deprecated and isinstance(xml_item.deprecated, basestring):
if hasattr(xml_item, 'deprecated') and xml_item.deprecated and isinstance(xml_item.deprecated, string_base):
element = et.Element('deprecated', kind='deprecated')
element.text = VERSION

Expand Down Expand Up @@ -2610,7 +2610,7 @@ def DumpMethod(self, write):

if hasattr(method, 'deprecated') and method.deprecated:
text = method.deprecated
if isinstance(text, basestring):
if isinstance(text, string_base):
text = '%s %s\n%s%s\n\n'%(' .. deprecated::', VERSION, ' '*9, text.replace('\n', ' '))
stream.write(text)

Expand Down
2 changes: 1 addition & 1 deletion sphinxtools/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def PythonizeType(ptype, is_param):

else:
if is_param and '.' in ptype:
modules = MODULENAME_REPLACE.values()
modules = list(MODULENAME_REPLACE.values())
modules.sort()
modules = modules[1:]
if ptype.split('.')[0] + '.' in modules:
Expand Down

0 comments on commit 91110d0

Please sign in to comment.