Revision: 8012
Author: xqt
Date: 2010-03-15 03:19:36 +0000 (Mon, 15 Mar 2010)
Log Message:
-----------
bugfix for local variable 'editRestriction' referenced before assignment
(#2970417)
Modified Paths:
--------------
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2010-03-14 18:08:34 UTC (rev 8011)
+++ trunk/pywikipedia/wikipedia.py 2010-03-15 03:19:36 UTC (rev 8012)
@@ -3870,13 +3870,13 @@
def oneDoneApi(self, data):
title = data['title']
+ editRestriction = ''
+ moveRestriction = ''
try:
username = data['revisions'][0]['user']
ipedit = 'anon' in data['revisions'][0]
timestamp = data['revisions'][0]['timestamp']
text = data['revisions'][0]['*']
- editRestriction = ''
- moveRestriction = ''
for revs in data['protection']:
if revs['type'] == 'edit':
editRestriction = revs['level']
Show replies by date