diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-10-10 19:14:30 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-10-10 19:14:30 +0200 |
| commit | 0be264b29eac11a5dec5e6565d23d4ea86bd905a (patch) | |
| tree | 79362f2340c89cb3cf2e8d8a467f357b7c7a8326 /doc/_extensions/pyjsparser | |
| parent | cf753a7fdf1739dcf37d2ad74f4c8efb3d4ff3b3 (diff) | |
| parent | e1104ac344cbc349a46b22339b13dfe9cbab8bcb (diff) | |
[MERGE] forward port branch 11.0 up to e1104ac344c
Diffstat (limited to 'doc/_extensions/pyjsparser')
| -rw-r--r-- | doc/_extensions/pyjsparser/parser.py | 2 | ||||
| -rw-r--r-- | doc/_extensions/pyjsparser/pyjsparserdata.py | 2 |
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(' ') |
