[cc-commits] [CC SVN] r12140 - cc.engine/trunk/cc/engine/support
webmaster at creativecommons.org
webmaster at creativecommons.org
Tue Apr 14 14:36:05 EDT 2009
Author: jedoig
Date: 2009-04-14 18:36:05 +0000 (Tue, 14 Apr 2009)
New Revision: 12140
Modified:
cc.engine/trunk/cc/engine/support/iso3166.py
Log:
Fixed the sorting of the countries
Modified: cc.engine/trunk/cc/engine/support/iso3166.py
===================================================================
--- cc.engine/trunk/cc/engine/support/iso3166.py 2009-04-14 18:20:21 UTC (rev 12139)
+++ cc.engine/trunk/cc/engine/support/iso3166.py 2009-04-14 18:36:05 UTC (rev 12140)
@@ -45,9 +45,10 @@
except LoadLocaleError, e:
result = [(v.token, v.title.default)
for v in self._vocabulary]
-
- self.countries_locale[target_lang] = sorted(result, key=lambda x:x[1])
+ result.sort(key=lambda x:x[1])
+ self.countries_locale[target_lang] = result
+
return result
class Iso3166(object):
More information about the cc-commits
mailing list