wikimedia / pywikibot-core (master)
Build #2819 was broken.
31 minutes and 11 seconds
Fabian Neundorf a573dda Changeset →
  [IMPROV] NamespacesDict: Lookup names from dict

Instead of iterating over all namespaces, the NamespacesDict can cache a
dictionary of names mapping to the namespace instance.

This cache is now used by `validLanguageLinks` which also avoids to iterate
over all namespaces for each langlink and to avoid any magic provided by the
`Namespace` class.

Also add a possibility to lookup the namespace via an already normalized name.

Change-Id: Ice7f51aef1673724c87ae2aa7a86f35f36d01692

Want to know about upcoming build environment updates?

Would you like to stay up-to-date with the upcoming Travis CI build environment updates? We set up a mailing list for you! Sign up here.

Would you like to test your private code?

Travis Pro could be your new best friend!