jayvdb added a comment. I'm unsure why `RefLink.url` needed decoding. At least in core, the page `text` returned from `Page.get` is `unicode`, and `textlib.removeDisabledParts` should also return `unicode`. Probably need to look at the script in core around that date to find why the page text / urls were raw bytes.
IMO `RefLink.url` should always be a `unicode` in Python 2 and a `str` in Python 3 , and this task should add tests for the `RefLink` class. TASK DETAIL https://phabricator.wikimedia.org/T118674 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb Cc: jayvdb, Base, Rubin16, Aklapper, StudiesWorld, MaxBioHazard, pywikibot-bugs-list, Jay8g _______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
