| 
														
															@@ -25,10 +25,14 @@ from pwman.data.database import Database, DatabaseException 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 from pwman.data.nodes import Node 
														 | 
														
														 | 
														
															 from pwman.data.nodes import Node 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 from pwman.data.tags import Tag 
														 | 
														
														 | 
														
															 from pwman.data.tags import Tag 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-try: 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    from pysqlite2 import dbapi2 as sqlite 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-except ImportError: 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    raise DatabaseException("python-sqlite2 not installed") 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import sys 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+if sys.version_info > (2, 5): 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    import sqlite3 as sqlite 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+else: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    try: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        from pysqlite2 import dbapi2 as sqlite 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    except ImportError: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        raise DatabaseException("python-sqlite2 not installed") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import pwman.util.config as config 
														 | 
														
														 | 
														
															 import pwman.util.config as config 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import cPickle 
														 | 
														
														 | 
														
															 import cPickle 
														 |