Xqt added a comment.
@Strainu: Seems there is an issue with api edit restriction with your bot
account. Could you please add the following print statements at the first line
of `_handle_query_limit` method in api.py :
print('>>> _handle_query_limit')
print(prev_limit, new_limit, had_data)
print(self.query_limit, self.limit)
from pprint import pprint
pprint(self.__dict__)
print('<<<')
and start the isRedirectPage() test again. I got:
>>> import pywikibot
>>> site = pywikibot.Site('ro')
>>> page = pywikibot.Page(site, 'Cod:SIRUTA:136')
>>> page.isRedirectPage()
>>> _handle_query_limit
None None True
None None
{'_count': 0,
'_previous_dicts': {},
'_props': frozenset({'info'}),
'api_limit': None,
'continue_name': 'continue',
'continue_update': <bound method QueryGenerator._continue of
<pywikibot.data.api.PropertyGenerator object at 0x000001FAF5891898>>,
'continuekey': ['info'],
'limit': None,
'limited_module': None,
'modules': ['info'],
'query_limit': None,
'request':
pywikibot.data.api.Request<wikipedia:ro->'/w/api.php?prop=info&continue=&indexpageids=&action=query&titles=Cod:SIRUTA:136&inprop=protection'>,
'request_class': <class 'pywikibot.data.api.Request'>,
'resultkey': 'pages',
'site': APISite("ro", "wikipedia")}
<<<
True
TASK DETAIL
https://phabricator.wikimedia.org/T294836
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: matej_suchanek, Xqt, Aklapper, pywikibot-bugs-list, Strainu, Jyoo1011,
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS,
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti,
Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]