From 0a63ef3f61f42c5fd22f2d0b626e386fd426ebed Mon Sep 17 00:00:00 2001 From: Ramin Farajpour Cami Date: Tue, 15 Nov 2016 02:10:28 +0330 Subject: Fixed #27463 -- Fixed E741 flake8 warnings. --- docs/_ext/djangodocs.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'docs/_ext/djangodocs.py') diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py index 0f29341c34..8daca2bc6d 100644 --- a/docs/_ext/djangodocs.py +++ b/docs/_ext/djangodocs.py @@ -309,10 +309,14 @@ class DjangoStandaloneHTMLBuilder(StandaloneHTMLBuilder): self.info(bold("writing templatebuiltins.js...")) xrefs = self.env.domaindata["std"]["objects"] templatebuiltins = { - "ttags": [n for ((t, n), (l, a)) in xrefs.items() - if t == "templatetag" and l == "ref/templates/builtins"], - "tfilters": [n for ((t, n), (l, a)) in xrefs.items() - if t == "templatefilter" and l == "ref/templates/builtins"], + "ttags": [ + n for ((t, n), (k, a)) in xrefs.items() + if t == "templatetag" and k == "ref/templates/builtins" + ], + "tfilters": [ + n for ((t, n), (k, a)) in xrefs.items() + if t == "templatefilter" and k == "ref/templates/builtins" + ], } outfilename = os.path.join(self.outdir, "templatebuiltins.js") with open(outfilename, 'w') as fp: -- cgit v1.2.1