wikimedia / pywikibot-core (2.0)
Build #3027 passed.
23 minutes and 10 seconds
Fabian Neundorf b1f6f39 Changeset →
  [FIX] config: Don't crash on later get_base_dir calls

All module variables starting with only one underscore get deleted after the
module's instantiation and with 2b07db2a the variable to store whether no user
config should be loaded was stored in such a variable and thus deleted so that
when `get_base_dir` was called afterwards it would crash because it is missing.

This patch renames the variable into using two underscores to still hide it's
presence but prevent it from deletion after the instantiation.

Conflicts:
pywikibot/config2.py

Change-Id: I538a73ff37da27a34ab732becafbf5a58b72a464
(cherry picked from commit c29a59f95803f517f0fb9a999b59db94b7085404)

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!