Revision: 7194
Author: purodha
Date: 2009-08-31 21:52:10 +0000 (Mon, 31 Aug 2009)
Log Message:
-----------
Applying patch #2809532 of nakor-wikipedia fixing the interwiki sort order in the
fy.wikipedia
Modified Paths:
--------------
trunk/pywikipedia/families/wikipedia_family.py
Modified: trunk/pywikipedia/families/wikipedia_family.py
===================================================================
--- trunk/pywikipedia/families/wikipedia_family.py 2009-08-31 20:49:50 UTC (rev 7193)
+++ trunk/pywikipedia/families/wikipedia_family.py 2009-08-31 21:52:10 UTC (rev 7194)
@@ -928,6 +928,10 @@
# Order for fy: alphabetical by code, but y counts as i
def fycomp(x,y):
+ if x == 'nb':
+ x = 'no'
+ if y == 'nb':
+ y = 'no'
x =
x.replace("y","i")+x.count("y")*"!"
y =
y.replace("y","i")+y.count("y")*"!"
return cmp(x,y)
Show replies by date