From 729a0d126771fc5aaae38b1221dad1aebe15345e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 18 Jan 2013 08:37:18 -0800 Subject: cache/sqlite.py: unicode_literals --- pym/portage/cache/sqlite.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pym/portage/cache/sqlite.py b/pym/portage/cache/sqlite.py index 9c1b3eb7e..8a9f747ce 100644 --- a/pym/portage/cache/sqlite.py +++ b/pym/portage/cache/sqlite.py @@ -1,6 +1,8 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 +from __future__ import unicode_literals + import re import sys from portage.cache import fs_template @@ -21,7 +23,6 @@ class database(fs_template.FsBased): # to calculate the number of pages requested, according to the following # equation: cache_bytes = page_bytes * page_count cache_bytes = 1024 * 1024 * 10 - _EMPTY_STRING = _unicode_decode("") def __init__(self, *args, **config): super(database, self).__init__(*args, **config) @@ -215,7 +216,7 @@ class database(fs_template.FsBased): v = result[column_index] if v is None: # This happens after a new empty column has been added. - v = self._EMPTY_STRING + v = "" d[k] = v return d -- cgit v1.2.3-1-g7c22