Commit d4bb8313 authored by Alex Gaynor's avatar Alex Gaynor
Browse files

Reformated some code for readability.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14652 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent e364f9ca
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -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 = ')