From 55d8141c5e1565d5d30878d4e5b2e32ec5cd446a Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Tue, 15 Jun 2010 20:42:12 -0500 Subject: Use sqlite3 module if available Since Python 2.5, pysqlite2 has been included in the Python standard library with the name sqlite3. https://bugzilla.gnome.org/show_bug.cgi?id=621715 --- git-bz | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3