[Pywikipedia-l] SVN: [4836] trunk/pywikipedia/featuredcount.py

leogregianin at svn.wikimedia.org leogregianin at svn.wikimedia.org
Wed Jan 9 17:13:18 UTC 2008


Revision: 4836
Author:   leogregianin
Date:     2008-01-09 17:13:17 +0000 (Wed, 09 Jan 2008)

Log Message:
-----------
remove code unnecessary

Modified Paths:
--------------
    trunk/pywikipedia/featuredcount.py

Modified: trunk/pywikipedia/featuredcount.py
===================================================================
--- trunk/pywikipedia/featuredcount.py	2008-01-09 17:04:10 UTC (rev 4835)
+++ trunk/pywikipedia/featuredcount.py	2008-01-09 17:13:17 UTC (rev 4836)
@@ -16,24 +16,6 @@
 import wikipedia, catlib
 from featured import featured_name
 
-def CAT(site,name):
-    cat=catlib.Category(site, name)
-    return cat.articles()
-
-def BACK(site,name):
-    p=wikipedia.Page(site, name)
-    return [page for page in p.getReferences(follow_redirects = False)]
-
-def LINKS(site,name, ignore=[]):
-    p=wikipedia.Page(site, name)
-    links=p.linkedPages()
-    for n in links[:]:
-        t=n.titleWithoutNamespace()
-        if t[0] in u"/#" or t in ignore:
-            links.remove(n)
-    links.sort()
-    return links
-
 def featuredArticles(site):
     method=featured_name[site.lang][0]
     name=featured_name[site.lang][1]





More information about the Pywikipedia-l mailing list