~cjwatson/launchpadlib/postpone-keyring-errors-import

Viewing all changes in revision 180.

  • Committer: Colin Watson
  • Date: 2020-04-17 01:41:53 UTC
  • Revision ID: cjwatson@canonical.com-20200417014153-9rpqz7e0ieibzufx
Postpone keyring.errors import.

We import the keyring module late because it does environment-dependent
backend initialisation at import time, and we want to postpone this until we
actually need it; importing it early can also cause test problems.  We need
to take the same care when importing keyring.errors.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: