i18n Python scripts: fix a typo in TranslationUnit._stringsKey()

I believe the problematic code could only be reached when reading buggy
versions (i.e., with duplicate ids) of the legacy FlightGear XML
non-master l10n files, which is why we haven't tripped on it so far.
This commit is contained in:
Florent Rougon
2020-06-18 00:56:37 +02:00
parent d502afa171
commit 14eb302022
+1 -1
View File
@@ -461,7 +461,7 @@ class TranslationUnit:
def _stringsKey(self): def _stringsKey(self):
"""Key used to compare the strings of two TranslationUnit instances.""" """Key used to compare the strings of two TranslationUnit instances."""
return (self.self.sourceText, self.targetTexts, self.developerComments, return (self.sourceText, self.targetTexts, self.developerComments,
self.translatorComments) self.translatorComments)
def sameStrings(self, other): def sameStrings(self, other):