[Pywikipedia-l] SVN: [4933] trunk/pywikipedia/wikipedia.py

rotem at svn.wikimedia.org rotem at svn.wikimedia.org
Thu Jan 24 17:42:14 UTC 2008


Revision: 4933
Author:   rotem
Date:     2008-01-24 17:42:13 +0000 (Thu, 24 Jan 2008)

Log Message:
-----------
Minor fixes.

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

Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py	2008-01-24 17:28:11 UTC (rev 4932)
+++ trunk/pywikipedia/wikipedia.py	2008-01-24 17:42:13 UTC (rev 4933)
@@ -864,7 +864,7 @@
         
         """
         txt = self.get()
-        txt = removeLanguageLinks(txt)
+        txt = removeLanguageLinks(txt, site = self.site())
         txt = removeCategoryLinks(txt, site = self.site())
         if len(txt) < 4:
             return True
@@ -2451,7 +2451,7 @@
                     # may encounter pages from non-existing wikis such as
                     # http://eo.wikisource.org/
                     if data.find("<title>Wiki does not exist</title>") != -1:
-                        raise NoSuchSite(u'Wiki %s does not exist yet' % self)
+                        raise NoSuchSite(u'Wiki %s does not exist yet' % self.site)
                     elif data.find("<siteinfo>") == -1: # This probably means we got a 'temporary unaivalable'
                         output(u'Got incorrect export page. Sleeping for %d seconds...' % dt)
                         time.sleep(dt)





More information about the Pywikipedia-l mailing list