From: Armin Ronacher Date: Thu, 25 Jul 2013 07:30:13 +0000 (+0200) Subject: Some codestyle updates in babel.messages.mofile X-Git-Tag: 1.0~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f58cd9cb0b5db8f049f23089906792136c1c21f3;p=thirdparty%2Fbabel.git Some codestyle updates in babel.messages.mofile --- diff --git a/babel/messages/mofile.py b/babel/messages/mofile.py index c92cbad9..d409526e 100644 --- a/babel/messages/mofile.py +++ b/babel/messages/mofile.py @@ -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.