From fd457af5c7b7d17f1d23c19e869e1d08f70f5a43 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Mon, 23 Mar 2009 19:06:12 +0100 Subject: [PATCH] started to fix code style in entropy.db, the Entropy Repository interface. --- libraries/entropy/db.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libraries/entropy/db.py b/libraries/entropy/db.py index 9769c0652..81499207e 100644 --- a/libraries/entropy/db.py +++ b/libraries/entropy/db.py @@ -26,19 +26,20 @@ import shutil import subprocess from entropy.const import etpConst, etpCache from entropy.exceptions import * -from entropy.output import brown, bold, red, blue, darkred, darkgreen, TextInterface +from entropy.output import brown, bold, red, blue, darkred, darkgreen, \ + TextInterface from entropy.cache import EntropyCacher from entropy.core import Singleton try: # try with sqlite3 from python 2.5 - default one from sqlite3 import dbapi2 -except ImportError: # fallback to embedded pysqlite +except ImportError: # fallback to pysqlite try: from pysqlite2 import dbapi2 except ImportError, e: raise SystemError( "%s. %s: %s" % ( - _("Entropy needs a working sqlite3+pysqlite or Python compiled with sqlite3 support"), + _("Entropy needs Python compiled with sqlite3 support"), _("Error"), e, )