summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit-bz5
1 files changed, 4 insertions, 1 deletions
diff --git a/git-bz b/git-bz
index d362c54..8da9c7a 100755
--- a/git-bz
+++ b/git-bz
@@ -67,7 +67,10 @@ from ConfigParser import RawConfigParser, NoOptionError
import httplib
from optparse import OptionParser
import os
-from pysqlite2 import dbapi2 as sqlite
+try:
+ from sqlite3 import dbapi2 as sqlite
+except ImportError:
+ from pysqlite2 import dbapi2 as sqlite
import re
from StringIO import StringIO
from subprocess import Popen, CalledProcessError, PIPE