diff options
author | Ramin Farajpour Cami <ramin.blackhat@gmail.com> | 2016-11-15 02:10:28 +0330 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-11-14 17:40:28 -0500 |
commit | 0a63ef3f61f42c5fd22f2d0b626e386fd426ebed (patch) | |
tree | 4529b5f5c23db4062a5195f961e4ae468120741e /docs/_ext/djangodocs.py | |
parent | c7bfcd2f377ad5803e25ee547dee9cf58ee68ab2 (diff) | |
download | django-0a63ef3f61f42c5fd22f2d0b626e386fd426ebed.tar.gz |
Fixed #27463 -- Fixed E741 flake8 warnings.
Diffstat (limited to 'docs/_ext/djangodocs.py')
-rw-r--r-- | docs/_ext/djangodocs.py | 12 |
1 files changed, 8 insertions, 4 deletions
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: |