mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
fix for py26.
This commit is contained in:
parent
60911efe05
commit
9404f633d4
@ -45,8 +45,9 @@ class CatalogInfo(LocaleFileInfoBase):
|
|||||||
path.getmtime(self.mo_path) < path.getmtime(self.po_path))
|
path.getmtime(self.mo_path) < path.getmtime(self.po_path))
|
||||||
|
|
||||||
def write_mo(self, locale):
|
def write_mo(self, locale):
|
||||||
with open(self.po_path, 'rt') as p, open(self.mo_path, 'wb') as m:
|
with open(self.po_path, 'rt') as po:
|
||||||
write_mo(m, read_po(p, locale))
|
with open(self.mo_path, 'wb') as mo:
|
||||||
|
write_mo(mo, read_po(po, locale))
|
||||||
|
|
||||||
|
|
||||||
def get_catalogs(locale_dirs, locale, gettext_compact=False, force_all=False):
|
def get_catalogs(locale_dirs, locale, gettext_compact=False, force_all=False):
|
||||||
|
Loading…
Reference in New Issue
Block a user