[Pywikipedia-l] SVN: [5327] trunk/pywikipedia/welcome.py
nicdumz at svn.wikimedia.org
nicdumz at svn.wikimedia.org
Wed May 7 22:58:16 UTC 2008
Revision: 5327
Author: nicdumz
Date: 2008-05-07 22:58:16 +0000 (Wed, 07 May 2008)
Log Message:
-----------
Using "time" as a variable name had unwanted consequences : calls to time module methods were screwed up. Fixing that.
Modified Paths:
--------------
trunk/pywikipedia/welcome.py
Modified: trunk/pywikipedia/welcome.py
===================================================================
--- trunk/pywikipedia/welcome.py 2008-05-07 22:32:35 UTC (rev 5326)
+++ trunk/pywikipedia/welcome.py 2008-05-07 22:58:16 UTC (rev 5327)
@@ -778,8 +778,8 @@
# think about non-wikimedia wikis. Use Site functions.
URL = wsite.log_address(limit, 'newusers')
if timeoffset_variable != 0:
- time = wsite.server_time() - timedelta(minutes=timeoffset_variable)
- offset_variable = int(time.strftime("%Y%m%d%H%M%S"))
+ now = wsite.server_time() - timedelta(minutes=timeoffset_variable)
+ offset_variable = int(now.strftime("%Y%m%d%H%M%S"))
if offset_variable != 0:
URL += "&offset=%d" % offset_variable
log = wsite.getUrl(URL)
More information about the Pywikipedia-l
mailing list