]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Some codestyle updates in babel.messages.mofile
authorArmin Ronacher <armin.ronacher@active-4.com>
Thu, 25 Jul 2013 07:30:13 +0000 (09:30 +0200)
committerArmin Ronacher <armin.ronacher@active-4.com>
Thu, 25 Jul 2013 07:30:13 +0000 (09:30 +0200)
babel/messages/mofile.py

index c92cbad9b642c7552348c86f26b9678ca856c14a..d409526eb1a56361806f4e6944c3c27ed6dc6fd6 100644 (file)
@@ -27,8 +27,6 @@ def read_mo(fileobj):
     corresponding `Catalog` object.
 
     :param fileobj: the file-like object to read the MO file from
-    :return: a catalog object representing the parsed MO file
-    :rtype: `Catalog`
 
     :note: The implementation of this function is heavily based on the
            ``GNUTranslations._parse`` method of the ``gettext`` module in the
@@ -107,6 +105,7 @@ def read_mo(fileobj):
     catalog.mime_headers = headers.items()
     return catalog
 
+
 def write_mo(fileobj, catalog, use_fuzzy=False):
     """Write a catalog to the specified file-like object using the GNU MO file
     format.