Skip to content

Commit 83f2f07

Browse files
committed
Minor fixes in AjaxPage
1 parent b8d5c44 commit 83f2f07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webware/Examples/AjaxPage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def quoteJs(what):
2727

2828

2929
class PyJs:
30-
"""Translate Python expressions to a JavaScript strings."""
30+
"""Translate Python expressions to JavaScript strings."""
3131

3232
def __init__(self, name):
3333
self._name = name
@@ -39,7 +39,7 @@ def __str__(self):
3939
return self._name
4040

4141
def __call__(self, *args, **kw):
42-
args = ','.join([quoteJs(i) for i in args])
42+
args = ','.join(map(quoteJs, args))
4343
kwArgs = ','.join(f'{k}={quoteJs(v)}' for k, v in kw.items())
4444
if args and kwArgs:
4545
allArgs = f'{args},{kwArgs}'

0 commit comments

Comments
 (0)