fix __import__ calls

This commit is contained in:
Yann Leboulanger 2013-01-04 14:12:35 +01:00
parent fb6240f1c5
commit 078abc9b7a
2 changed files with 2 additions and 2 deletions

View File

@ -158,7 +158,7 @@ except ImportError:
HAVE_GPG = True HAVE_GPG = True
try: try:
__import__('gnupg', globals(), locals(), [], -1) __import__('gnupg', globals(), locals(), [], 0)
except ImportError: except ImportError:
HAVE_GPG = False HAVE_GPG = False
else: else:

View File

@ -200,7 +200,7 @@ def get_storage():
global GnomeKeyring global GnomeKeyring
try: try:
gir = __import__('gi.repository', globals(), locals(), gir = __import__('gi.repository', globals(), locals(),
['GnomeKeyring'], -1) ['GnomeKeyring'], 0)
GnomeKeyring = gir.GnomeKeyring GnomeKeyring = gir.GnomeKeyring
except ImportError: except ImportError:
pass pass