changed variable name to avoid collision in python3 (#4903)

* changed variable name to avoid collision in python3

* changed variablenames to avoid collision and allow use of python3
This commit is contained in:
shatoboar 2021-04-27 12:28:26 +02:00 committed by GitHub
parent 42c83b08f5
commit c7db4f4223
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -248,10 +248,10 @@ for f in sys.argv:
def xml_for(command): def xml_for(command):
name = command['name'] name = command['name']
async = command['async'] and ' (A)' or '' isAsync = command['async'] and ' (A)' or ''
dirname = command['dirname'] dirname = command['dirname']
return '''<xsl:if test="name=\'%(name)s\'"> return '''<xsl:if test="name=\'%(name)s\'">
<li><a href="%(dirname)s/%(name)s.html"><xsl:value-of select="name"/>%(async)s</a></li> <li><a href="%(dirname)s/%(name)s.html"><xsl:value-of select="name"/>%(isAsync)s</a></li>
</xsl:if> </xsl:if>
''' % locals() ''' % locals()