[Pywikipedia-l] SVN: [6606] branches/rewrite/pywikibot/page.py

nicdumz at svn.wikimedia.org nicdumz at svn.wikimedia.org
Wed Apr 15 07:37:43 UTC 2009


Revision: 6606
Author:   nicdumz
Date:     2009-04-15 07:37:43 +0000 (Wed, 15 Apr 2009)

Log Message:
-----------
Bugfix: 'site' is undeclared in that part of the code,
should be self._site

Modified Paths:
--------------
    branches/rewrite/pywikibot/page.py

Modified: branches/rewrite/pywikibot/page.py
===================================================================
--- branches/rewrite/pywikibot/page.py	2009-04-14 16:55:58 UTC (rev 6605)
+++ branches/rewrite/pywikibot/page.py	2009-04-15 07:37:43 UTC (rev 6606)
@@ -98,7 +98,7 @@
                 # overwrite title
                 if ":" in title:
                     prefix = title[ :title.index(":")]
-                    self._ns = site.ns_index(prefix)
+                    self._ns = self._site.ns_index(prefix)
                     if self._ns is None:
                         self._ns = 0
                     else:





More information about the Pywikipedia-l mailing list