Author: Alex Date: 2010-11-20 15:00:41 -0600 (Sat, 20 Nov 2010) New Revision: 14652
Modified: django/trunk/docs/_ext/djangodocs.py Log: Reformated some code for readability. Modified: django/trunk/docs/_ext/djangodocs.py =================================================================== --- django/trunk/docs/_ext/djangodocs.py 2010-11-20 20:40:16 UTC (rev 14651) +++ django/trunk/docs/_ext/djangodocs.py 2010-11-20 21:00:41 UTC (rev 14652) @@ -234,12 +234,12 @@ 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 = ') -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.