X-Git-Url: http://git.samba.org/samba.git/?p=jelmer%2Fsubvertpy.git;a=blobdiff_plain;f=revids.py;h=a0a7d69b9813209640b29ec0803c7b7c0363c236;hp=ce88bf206ae21ff7059f1ac54c978127a06a2a41;hb=b5573aaa499d3958862b963529943a8f5aef9fde;hpb=f0224a5b2e262acd3f71c24a817725c3c431b0c0 diff --git a/revids.py b/revids.py index ce88bf20..a0a7d69b 100644 --- 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