Commit 6430ac43 authored by Stefan Behnel's avatar Stefan Behnel

Py2.6 fix.

parent af81f34e
...@@ -107,7 +107,7 @@ class AnnotationCCodeWriter(CCodeWriter): ...@@ -107,7 +107,7 @@ class AnnotationCCodeWriter(CCodeWriter):
""") """)
# on-click toggle function to show/hide C source code # on-click toggle function to show/hide C source code
_onclick_attr = ' onclick="{}"'.format(( _onclick_attr = ' onclick="{0}"'.format((
"(function(s){" "(function(s){"
" s.display = s.display === 'block' ? 'none' : 'block'" " s.display = s.display === 'block' ? 'none' : 'block'"
"})(this.nextElementSibling.style)" "})(this.nextElementSibling.style)"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment