Merge fix for 115026
[jelmer/subvertpy.git] / revids.py
index ce88bf206ae21ff7059f1ac54c978127a06a2a41..a0a7d69b9813209640b29ec0803c7b7c0363c236 100644 (file)
--- a/revids.py
+++ b/revids.py
@@ -22,11 +22,6 @@ REVISION_ID_PREFIX = "svn-v%d-" % MAPPING_VERSION
 
 import urllib
 
-try:
-    import sqlite3
-except ImportError:
-    from pysqlite2 import dbapi2 as sqlite3
-
 def escape_svn_path(x):
     if isinstance(x, unicode):
         x = x.encode("utf-8")
@@ -84,6 +79,7 @@ class RevidMap(object):
     """
     def __init__(self, cache_db=None):
         if cache_db is None:
+            from cache import sqlite3
             self.cachedb = sqlite3.connect(":memory:")
         else:
             self.cachedb = cache_db