http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10712
Revision: 10712 Author: xqt Date: 2012-11-11 20:03:42 +0000 (Sun, 11 Nov 2012) Log Message: ----------- revert r10711
Modified Paths: -------------- trunk/pywikipedia/pywikibot/comms/http.py
Modified: trunk/pywikipedia/pywikibot/comms/http.py =================================================================== --- trunk/pywikipedia/pywikibot/comms/http.py 2012-11-11 19:57:35 UTC (rev 10711) +++ trunk/pywikipedia/pywikibot/comms/http.py 2012-11-11 20:03:42 UTC (rev 10712) @@ -40,7 +40,7 @@ self._parent = addinfourl self._buffer = {}
- def __getattr__(self, name, *args, **kwds): + def __getattr__(self, name): # raise same exception as parent if attribute does not exist attr = getattr(self._parent, name) if callable(attr):