[Kimchi-devel] [PATCH 3/3] Fix pep8 issues in src/kimchi/objectstore.py
Aline Manera
alinefm at linux.vnet.ibm.com
Tue Apr 1 18:56:33 UTC 2014
Reviewed-by: Aline Manera <alinefm at linux.vnet.ibm.com>
On 03/28/2014 06:34 PM, Rodrigo Trujillo wrote:
> Fix minor pep8 issues.
>
> Signed-off-by: Rodrigo Trujillo <rodrigo.trujillo at linux.vnet.ibm.com>
> ---
> src/kimchi/objectstore.py | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/kimchi/objectstore.py b/src/kimchi/objectstore.py
> index b1c1bdd..153b548 100644
> --- a/src/kimchi/objectstore.py
> +++ b/src/kimchi/objectstore.py
> @@ -14,7 +14,7 @@
> #
> # You should have received a copy of the GNU Lesser General Public
> # License along with this library; if not, write to the Free Software
> -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
> +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
>
> import json
> import sqlite3
> @@ -38,7 +38,6 @@ class ObjectStoreSession(object):
> self.conn = conn
> self.conn.text_factory = lambda x: unicode(x, "utf-8", "ignore")
>
> -
> def get_list(self, obj_type):
> c = self.conn.cursor()
> res = c.execute('SELECT id FROM objects WHERE type=?', (obj_type,))
> @@ -105,7 +104,8 @@ class ObjectStore(object):
> try:
> return self._connections[ident]
> except KeyError:
> - self._connections[ident] = sqlite3.connect(self.location, timeout=10)
> + self._connections[ident] = sqlite3.connect(self.location,
> + timeout=10)
> if len(self._connections.keys()) > 10:
> id, conn = self._connections.popitem(last=False)
> conn.interrupt()
More information about the Kimchi-devel
mailing list