Mercurial > treepkg > treepkg
changeset 419:eac71f066037 treepkg-status
make treepkg compatible to python 2.4
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Mon, 26 Jul 2010 13:46:19 +0000 |
parents | acb8dbd506f6 |
children | 414c77061d5a |
files | treepkg/info/data.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/treepkg/info/data.py Mon Jul 26 13:39:10 2010 +0000 +++ b/treepkg/info/data.py Mon Jul 26 13:46:19 2010 +0000 @@ -7,7 +7,10 @@ # Read the file COPYING coming with the software for details. """ Classes for storing and handling data related to treepkg info """ -import sqlite3 +try: + import sqlite3 as db +except ImportError: + from pysqlite2 import dbapi2 as db class Package: