mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Fix compatibility with Python 2.6 (does not support the set syntax).
This commit is contained in:
parent
b026cfd197
commit
eaed281de7
@ -161,7 +161,7 @@ def parse(translationFile):
|
||||
if len(data) == 0: # Multiline mode
|
||||
step = IN_MSGSTR
|
||||
else:
|
||||
translations |= {(untranslated, data)}
|
||||
translations |= set[((untranslated, data)])
|
||||
step = WAITING_FOR_MSGID
|
||||
|
||||
|
||||
@ -172,11 +172,11 @@ def parse(translationFile):
|
||||
step = WAITING_FOR_MSGID
|
||||
if translated == '':
|
||||
translated = untranslated
|
||||
translations |= {(untranslated, data)}
|
||||
translations |= set[((untranslated, data)])
|
||||
if step is IN_MSGSTR:
|
||||
if translated == '':
|
||||
translated = untranslated
|
||||
translations |= {(untranslated, data)}
|
||||
translations |= set[((untranslated, data)])
|
||||
return translations
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user