diff options
| author | Scott Bahling <sbahling@suse.de> | 2017-11-01 12:13:45 +0100 |
|---|---|---|
| committer | Scott Bahling <sbahling@suse.de> | 2017-11-01 12:13:45 +0100 |
| commit | da1e9fd7c1236b17590946aff5a7ae638d50c6df (patch) | |
| tree | 42bf807ff6d5e44f8db1f40fca454100928fdefd /obsapi/core.py | |
| parent | d8640ac161de82ff0e1f925d0c39f48067d4479a (diff) | |
| download | obsapi-0.0.7.tar.gz obsapi-0.0.7.tar.xz obsapi-0.0.7.zip | |
Only call osc.conf.get_config() when neededobsapi-0.0.7
osc.conf.get_config() can cause calls to password managers like kwallet.
Move this action from module init to the functions that actually need
to access the OBS api and require authentication. We also cache the results
in a local variable now.
Diffstat (limited to 'obsapi/core.py')
| -rw-r--r-- | obsapi/core.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/obsapi/core.py b/obsapi/core.py index 5200efe..090c953 100644 --- a/obsapi/core.py +++ b/obsapi/core.py @@ -8,12 +8,6 @@ from obsapi.sourceapi import ObsSourceApi from obsapi.buildapi import ObsBuildApi from obsapi.formatter import Formatter -try: - import osc.conf as osc_conf - osc_conf.get_config() -except: - osc_conf = None - LSItem = namedtuple('LSItem', 'name md5 size mtime') Directory = namedtuple('Directory', 'name rev vrev srcmd5') |
