fix __import__ calls
This commit is contained in:
		
							parent
							
								
									fb6240f1c5
								
							
						
					
					
						commit
						078abc9b7a
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue