Xqt created this task. Xqt added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION **List of steps to reproduce**: - See T301768 <https://phabricator.wikimedia.org/T301768> - https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.html?highlight=get_file_history#pywikibot.FilePage.get_file_history - https://codesearch.wmcloud.org/pywikibot/?q=get_file_history&i=nope&files=&excludeFiles=&repos= **What happens?**: get the first or last item of the sequence (using `pop()`) fails with KeyError or TypeError **What should have happened instead?**: Either return a sequence (or generator) with get_file_history or describe a way how to find the first or last item in the dict e.g. hist = image.get_file_history() key = sorted(hist.keys()) item = hist.pop(key) **Software version**: Pywikibot 7.0.0d0 TASK DETAIL https://phabricator.wikimedia.org/T301800 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, pywikibot-bugs-list, Xqt, 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]
