diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-13 01:51:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-13 01:52:12 +0400 |
commit | aea00c7a81de90fd3f0b976ee1a7d5040c9f18e7 (patch) | |
tree | ade0cea55687b6b69673adb7ea4ad24e61b4adf8 /release/scripts/modules/bl_i18n_utils/utils.py | |
parent | 8547d17739d1fc6eb2bd648af8dadae809865614 (diff) |
Code cleanup: style
Diffstat (limited to 'release/scripts/modules/bl_i18n_utils/utils.py')
-rw-r--r-- | release/scripts/modules/bl_i18n_utils/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/modules/bl_i18n_utils/utils.py b/release/scripts/modules/bl_i18n_utils/utils.py index 53146fd0287..85977642bbb 100644 --- a/release/scripts/modules/bl_i18n_utils/utils.py +++ b/release/scripts/modules/bl_i18n_utils/utils.py @@ -1285,7 +1285,6 @@ class I18n: return path, env[tuple_id] return None, None # No data... - def parse(self, kind, src, langs=set()): self.parsers[kind](self, src, langs) @@ -1372,6 +1371,7 @@ class I18n: ({} currently). """.format(self.settings.PARSER_TEMPLATE_ID) default_context = self.settings.DEFAULT_CONTEXT + def _gen_py(self, langs, tab=" "): _lencomm = len(self.settings.PO_COMMENT_PREFIX) _lengen = len(self.settings.PO_COMMENT_PREFIX_GENERATED) @@ -1451,7 +1451,7 @@ class I18n: ret.append(tab + lngsp + ' "' + comments[-1] + '"))),') else: ret[-1] = ret[-1] + " (" + (('"' + comments[0] + '",') if comments else "") + ")))," - + ret.append(tab + "),") ret += [ ")", |