From 078abc9b7ab6f5839ffcd75e2a0bbb7f1c39dd75 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 4 Jan 2013 14:12:35 +0100 Subject: [PATCH] fix __import__ calls --- src/common/gajim.py | 2 +- src/common/passwords.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/gajim.py b/src/common/gajim.py index b6f1db9ff..276601092 100644 --- a/src/common/gajim.py +++ b/src/common/gajim.py @@ -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: diff --git a/src/common/passwords.py b/src/common/passwords.py index d61d2afd9..4ed62d7c3 100644 --- a/src/common/passwords.py +++ b/src/common/passwords.py @@ -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