]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
small code cleanup in write_po()
authorFelix Schwarz <felix.schwarz@oss.schwarz.eu>
Fri, 3 Aug 2012 19:17:50 +0000 (19:17 +0000)
committerFelix Schwarz <felix.schwarz@oss.schwarz.eu>
Fri, 3 Aug 2012 19:17:50 +0000 (19:17 +0000)
babel/messages/pofile.py

index b42e0393dadeb306c47562e7f646755f04a18ec5..889e4d3a6b690d5dd37fac96a269771e2ba74ea5 100644 (file)
@@ -442,10 +442,8 @@ def write_po(fileobj, catalog, width=76, no_location=False, omit_header=False,
                 for line in comment_header.splitlines():
                     lines += wraptext(line, width=width,
                                       subsequent_indent='# ')
-                comment_header = u'\n'.join(lines) + u'\n'
-            else:
-                comment_header += u'\n'
-            _write(comment_header)
+                comment_header = u'\n'.join(lines)
+            _write(comment_header + u'\n')
 
         for comment in message.user_comments:
             _write_comment(comment)