diff rhodecode/controllers/feed.py @ 3890:f5a1314886ec beta

replace list appends with list literals when possible
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 22 May 2013 03:17:42 +0200
parents ce4b7023a492
children 5293d4bbb1ea
line wrap: on
line diff
--- a/rhodecode/controllers/feed.py	Wed May 22 03:15:44 2013 +0200
+++ b/rhodecode/controllers/feed.py	Wed May 22 03:17:42 2013 +0200
@@ -87,9 +87,8 @@
         return diff_processor, changes
 
     def __get_desc(self, cs):
-        desc_msg = []
-        desc_msg.append((_('%s committed on %s')
-                         % (h.person(cs.author), h.fmt_date(cs.date))) + '<br/>')
+        desc_msg = [(_('%s committed on %s')
+                     % (h.person(cs.author), h.fmt_date(cs.date))) + '<br/>']
         #branches, tags, bookmarks
         if cs.branch:
             desc_msg.append('branch: %s<br/>' % cs.branch)