[Pywikipedia-svn] SVN: [7306] trunk/pywikipedia/wikipedia.py

siebrand at svn.wikimedia.org siebrand at svn.wikimedia.org
Thu Sep 24 23:58:14 UTC 2009


Revision: 7306
Author:   siebrand
Date:     2009-09-24 23:58:14 +0000 (Thu, 24 Sep 2009)

Log Message:
-----------
[#2848560] wikipedia.Page.previousRevision throw exception. Patch by robertm

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

Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py	2009-09-24 23:54:20 UTC (rev 7305)
+++ trunk/pywikipedia/wikipedia.py	2009-09-24 23:58:14 UTC (rev 7306)
@@ -886,7 +886,7 @@
     def previousRevision(self):
         """Return the revision id for the previous revision of this Page."""
         vh = self.getVersionHistory(revCount=2)
-        return vh[1][0]
+        return vh[0][0]
 
     def exists(self):
         """Return True if page exists on the wiki, even if it's a redirect.





More information about the Pywikipedia-svn mailing list