diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2010-11-20 21:00:41 +0000 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2010-11-20 21:00:41 +0000 |
| commit | d4bb8313f73020b63204e39de6599ec355b26933 (patch) | |
| tree | c8c7c44082c107c89d7cc58ddec64bfc92c3d32a /docs/_ext | |
| parent | e364f9ca7a21b3b931a618c71c638a113cdb8a3e (diff) | |
Reformated some code for readability.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14652 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/_ext')
| -rw-r--r-- | docs/_ext/djangodocs.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py index 24be841110..7710786d0f 100644 --- a/docs/_ext/djangodocs.py +++ b/docs/_ext/djangodocs.py @@ -234,12 +234,12 @@ class DjangoStandaloneHTMLBuilder(StandaloneHTMLBuilder): return self.info(bold("writing templatebuiltins.js...")) xrefs = self.env.domaindata["std"]["objects"] - templatebuiltins = dict([('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 - t == 'ref/templates/builtins'])]) + 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"], + } outfilename = os.path.join(self.outdir, "templatebuiltins.js") f = open(outfilename, 'wb') f.write('var django_template_builtins = ') |
