Commits

Anonymous committed 38d5d2a

[project @ 325]
Small tidy up

  • Participants
  • Parent commits 7afe4fa

Comments (0)

Files changed (1)

cciw/cciwmain/templatetags/bbcode.py

         opening = self.html_equiv
         if self.attributes:
             # Add any attributes
-            opening += ' ' + ' '.join(['%s="%s"' % (k, escape(v)) 
-                                        for k, v in self.attributes.items()])
+            opening += ''.join(' %s="%s"' % (k, escape(v)) 
+                                        for k, v in self.attributes.items())
         if self.self_closing:
             ret = '<' + opening + '/>'
         else:
                         if wholematch.startswith('[['):
                             # in case of "[[tag]blah":
                             self.push_text_node('[')
-                        # push it
                         if wholematch.startswith('[/'):
                             # closing
                             self.close_tag_node(tagname)