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
try:
__import__('gnupg', globals(), locals(), [], -1)
__import__('gnupg', globals(), locals(), [], 0)
except ImportError:
HAVE_GPG = False
else:

View File

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