summaryrefslogtreecommitdiff
path: root/doc/_extensions/pyjsparser
diff options
context:
space:
mode:
Diffstat (limited to 'doc/_extensions/pyjsparser')
-rw-r--r--doc/_extensions/pyjsparser/parser.py2
-rw-r--r--doc/_extensions/pyjsparser/pyjsparserdata.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/_extensions/pyjsparser/parser.py b/doc/_extensions/pyjsparser/parser.py
index 78ebe14e6ec..28001886a8e 100644
--- a/doc/_extensions/pyjsparser/parser.py
+++ b/doc/_extensions/pyjsparser/parser.py
@@ -174,7 +174,7 @@ class PyJsParser:
break
else:
break
- return filter(None, comments)
+ return [c for c in comments if c]
def scanHexEscape(self, prefix):
code = 0
diff --git a/doc/_extensions/pyjsparser/pyjsparserdata.py b/doc/_extensions/pyjsparser/pyjsparserdata.py
index 1d6ab2ee2ca..6ca6dbc47cc 100644
--- a/doc/_extensions/pyjsparser/pyjsparserdata.py
+++ b/doc/_extensions/pyjsparser/pyjsparserdata.py
@@ -300,4 +300,4 @@ if __name__=='__main__':
assert isLineTerminator(0x0A)
assert isIdentifierStart('$')
assert isIdentifierStart(100)
- assert isWhiteSpace(' ') \ No newline at end of file
+ assert isWhiteSpace(' ')