http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11254
Revision: 11254 Author: xqt Date: 2013-03-24 17:19:45 +0000 (Sun, 24 Mar 2013) Log Message: ----------- remove old deprecate_arg warning for "persistent_http" (> 1 year)
Modified Paths: -------------- branches/rewrite/pywikibot/__init__.py
Modified: branches/rewrite/pywikibot/__init__.py =================================================================== --- branches/rewrite/pywikibot/__init__.py 2013-03-24 12:54:58 UTC (rev 11253) +++ branches/rewrite/pywikibot/__init__.py 2013-03-24 17:19:45 UTC (rev 11254) @@ -130,7 +130,7 @@
_sites = {}
-@deprecate_arg("persistent_http", None) + def Site(code=None, fam=None, user=None, sysop=None, interface=None): """Return the specified Site object.
@@ -171,13 +171,13 @@ if not key in _sites: _sites[key] = __Site(code=code, fam=fam, user=user, sysop=sysop) pywikibot.debug(u"Instantiating Site object '%(site)s'" - % {'site': _sites[key]}, - _logger) + % {'site': _sites[key]}, _logger) return _sites[key]
-getSite = Site # alias for backwards-compability
+getSite = Site # alias for backwards-compability
+ from page import Page, ImagePage, Category, Link, User, ItemPage, PropertyPage, Claim from page import html2unicode, url2unicode
pywikipedia-svn@lists.wikimedia.org