Page MenuHomePhabricator

multiple matches order of _code_fam_from_url depends on Python version
Closed, ResolvedPublicBUG REPORT

Description

_code_fam_from_url runs through config.family_files dict but the order of the dict is not deterministic and may be different on several Python releases. Python 3.7 works like an OrderedDict but others do not.

In result when _code_fam_from_url has multiple matches of a site, the order of matched_sites is different and returning the first site "(use first)" is not always the same.

Event Timeline

Xqt triaged this task as Low priority.Jul 17 2019, 8:28 PM
Xqt changed the subtype of this task from "Task" to "Bug Report".
Xqt lowered the priority of this task from Low to Lowest.Jul 19 2019, 9:00 PM

@Xqt, since now pywikibot supports only >= 3.7 this can be closed., right?

Xqt claimed this task.

@Xqt, since now pywikibot supports only >= 3.7 this can be closed., right?

Yes, solved with Python 3.7