This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/master by this push:
     new c7db4f4  changed variable name to avoid collision in python3 (#4903)
c7db4f4 is described below

commit c7db4f4223ed2dd3af0c66ae22e4fe7186bdc9f4
Author: shatoboar <[email protected]>
AuthorDate: Tue Apr 27 12:28:26 2021 +0200

    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
---
 tools/apidoc/gen_toc.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/apidoc/gen_toc.py b/tools/apidoc/gen_toc.py
index 0b0702a..84140ee 100644
--- a/tools/apidoc/gen_toc.py
+++ b/tools/apidoc/gen_toc.py
@@ -248,10 +248,10 @@ for f in sys.argv:
 
 def xml_for(command):
     name = command['name']
-    async = command['async'] and ' (A)' or ''
+    isAsync = command['async'] and ' (A)' or ''
     dirname = command['dirname']
     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>
 ''' % locals()
 

Reply via email to