diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2013-04-19 20:23:02 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2013-04-19 20:23:02 +0400 |
commit | fba67abf7a9caf8ccfa03af38d91f70de8875d2d (patch) | |
tree | d490864eb64c2ef870d8947bfd627a74c5309b36 /release/scripts | |
parent | 1210c8493c4a09f1ffcbd0acd169bf043bddebe0 (diff) |
Restore usage of difflib's quick_ratio()... Don't actually know what happens here, my tests with timeit showed it much slower than ratio(), but real-life says the contrary...
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/modules/bl_i18n_utils/settings.py | 1 | ||||
-rw-r--r-- | release/scripts/modules/bl_i18n_utils/utils.py | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/release/scripts/modules/bl_i18n_utils/settings.py b/release/scripts/modules/bl_i18n_utils/settings.py index 832adc80934..4ca4c18cc7b 100644 --- a/release/scripts/modules/bl_i18n_utils/settings.py +++ b/release/scripts/modules/bl_i18n_utils/settings.py @@ -344,6 +344,7 @@ WARN_MSGID_END_POINT_ALLOWED = { "Temp. Diff.", "Float Neg. Exp.", " RNA Path: bpy.types.", + "Max Ext.", } PARSER_CACHE_HASH = 'sha1' diff --git a/release/scripts/modules/bl_i18n_utils/utils.py b/release/scripts/modules/bl_i18n_utils/utils.py index b4455333b0f..3fb7f71581b 100644 --- a/release/scripts/modules/bl_i18n_utils/utils.py +++ b/release/scripts/modules/bl_i18n_utils/utils.py @@ -68,9 +68,7 @@ def get_best_similar(data): for x in similar_pool: if min_len < len(x) < max_len: s.set_seq1(x) - # XXX quick_ratio() actually looks much slower (~400%) than ratio() itself!!! - #if s.real_quick_ratio() >= use_similar and s.quick_ratio() >= use_similar: - if s.real_quick_ratio() >= use_similar: + if s.real_quick_ratio() >= use_similar and s.quick_ratio() >= use_similar: sratio = s.ratio() if sratio >= use_similar: tmp = x |