Revision: 6465
Author: russblau
Date: 2009-03-02 11:47:41 +0000 (Mon, 02 Mar 2009)
Log Message:
-----------
fix getUrl() deprecation reference
Modified Paths:
--------------
branches/rewrite/pywikibot/site.py
Modified: branches/rewrite/pywikibot/site.py
===================================================================
--- branches/rewrite/pywikibot/site.py 2009-03-02 11:47:13 UTC (rev 6464)
+++ branches/rewrite/pywikibot/site.py 2009-03-02 11:47:41 UTC (rev 6465)
@@ -425,14 +425,14 @@
are ignored.
"""
- deprecated("pywikibot.comms.data.request")
+ deprecated("pywikibot.comms.http.request")
+ from pywikibot.comms import http
if data:
if not isinstance(data, basestring):
data = urllib.urlencode(data)
- return pywikibot.comms.data.request(self, path, method="PUT",
- body=data)
+ return http.request(self, path, method="PUT", body=data)
else:
- return pywikibot.comms.data.request(self, path)
+ return http.request(self, path)
def postForm(self, address, predata, sysop=False, cookies=None):
"""DEPRECATED"""
Show replies by date