[Treepkg-commits] r379 - branches/treepkg-status/treepkg/info

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Jul 26 15:46:20 CEST 2010


Author: bricks
Date: 2010-07-26 15:46:19 +0200 (Mon, 26 Jul 2010)
New Revision: 379

Modified:
   branches/treepkg-status/treepkg/info/data.py
Log:
make treepkg compatible to python 2.4


Modified: branches/treepkg-status/treepkg/info/data.py
===================================================================
--- branches/treepkg-status/treepkg/info/data.py	2010-07-26 13:39:10 UTC (rev 378)
+++ branches/treepkg-status/treepkg/info/data.py	2010-07-26 13:46:19 UTC (rev 379)
@@ -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:
     



More information about the Treepkg-commits mailing list