
from django.core.exceptions import ImproperlyConfigured

from email_extras.settings import USE_GNUPG


__version__ = "0.1.0"

if USE_GNUPG:
	try:
		import gnupg
	except ImportError:
		raise ImproperlyConfigured, "Could not import gnupg"

@@ -1,63 +1,4 @@
-%0D%0Afrom django.core.exceptions import ImproperlyConfigured%0D%0A
 %0D%0Afr
@@ -86,17 +86,26 @@
 G:%0D%0A
-%09
+    
 try:%0D%0A
-%09%09
+        
 impo
@@ -114,17 +114,20 @@
  gnupg%0D%0A
-%09
+    
 except I
@@ -141,12 +141,103 @@
 ror:
-%0D%0A%09%09
+%0A        try:%0A            from django.core.exceptions import ImproperlyConfigured%0D%0A            
 rais
@@ -285,9 +285,56 @@
  gnupg%22%0D
+        except ImportError:%0A            pass%0A%0D%0A
 %0A

Fix to allow version number to be imported without dependencies being installed.