We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8d5c44 commit 83f2f07Copy full SHA for 83f2f07
webware/Examples/AjaxPage.py
@@ -27,7 +27,7 @@ def quoteJs(what):
27
28
29
class PyJs:
30
- """Translate Python expressions to a JavaScript strings."""
+ """Translate Python expressions to JavaScript strings."""
31
32
def __init__(self, name):
33
self._name = name
@@ -39,7 +39,7 @@ def __str__(self):
39
return self._name
40
41
def __call__(self, *args, **kw):
42
- args = ','.join([quoteJs(i) for i in args])
+ args = ','.join(map(quoteJs, args))
43
kwArgs = ','.join(f'{k}={quoteJs(v)}' for k, v in kw.items())
44
if args and kwArgs:
45
allArgs = f'{args},{kwArgs}'
0 commit comments