mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #27463 -- Fixed E741 flake8 warnings.
This commit is contained in:
committed by
Tim Graham
parent
c7bfcd2f37
commit
0a63ef3f61
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user