From 40ca8557e9e25832afa40afd84124319cb71f87b Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 10 Oct 2017 13:29:11 +0200 Subject: [FIX] building documentation with P3 * fix P3 incompatibilities in doc/_extensions * vendor pyjsdoc, strip out everything we're not using and make what's left P3-compatible (upstream is not P3 compliant) * drop undeclared dependency on attrs as it turns out not to be much used --- doc/_extensions/pyjsparser/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/_extensions/pyjsparser/parser.py') 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 -- cgit v1.2.3