GNOME Bugzilla – Bug 452232
Unnecessary code in dogtail.i18n.loadTranslationsfromPackageMoFiles
Last modified: 2007-07-25 16:15:11 UTC
Please describe the problem: In the function dogtail.i18n.loadTranslationsfromPackageMoFiles there is a local dictionary variable moFiles. The comment for it is: # Keep a list of mo-files that are already in use to avoid duplicates. while the function is working new items are added to this variable but the values are never checked. The relevant code is useless. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Created attachment 90858 [details] [review] i18n.py patch
Created attachment 90885 [details] [review] check for dupes You're correct about the bug, but the solution is to fix the duplicate checking, not remove it entirely.