From 0ef4154d875fda1c227e93dc1e8817150273b9b1 Mon Sep 17 00:00:00 2001 From: "axel%pike.org" Date: Thu, 3 Aug 2006 12:16:04 +0000 Subject: [PATCH] backport to python 2.3 git-svn-id: svn://10.0.0.236/trunk@206478 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/testing/tests/l10n/lib/Mozilla/Paths.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mozilla/testing/tests/l10n/lib/Mozilla/Paths.py b/mozilla/testing/tests/l10n/lib/Mozilla/Paths.py index dd8419a961f..3839097c57a 100755 --- a/mozilla/testing/tests/l10n/lib/Mozilla/Paths.py +++ b/mozilla/testing/tests/l10n/lib/Mozilla/Paths.py @@ -47,13 +47,12 @@ for mod, lst in modules.iteritems(): components[c] = mod locales = {} -all = set() +all = {} for app in ['browser', 'mail']: path = 'mozilla/%s/locales/all-locales' % app locales[app] = [l.strip() for l in open(path)] - all = all.union(locales[app]) -all = list(all) -all.sort() + for loc in locales[app]: all[loc] = 1 +all = sorted(all.keys()) locales['toolkit'] = all #modules = {'browser': ['browser']} # XXX debug #locales = {'browser': ['fr', 'pl']} # locales['mail']} # XXX debug