def read_po(fileobj, locale=None, domain=None, ignore_obsolete=False, charset=None):
 catalog = Catalog(locale=locale, domain=domain, charset=charset)
 parser = PoFileParser(catalog, ignore_obsolete)
 parser.parse(fileobj)
 return catalog

def read_po ( fileobj , locale = None , domain = None , ignore_obsolete = False , charset = None ) : catalog = Catalog ( locale = locale , domain = domain , charset = charset ) parser = PoFileParser ( catalog , ignore_obsolete ) parser . parse ( fileobj ) return catalog
read messages from a gettext po file from the given file-like object and return a catalog .