From: Zac Medico Date: Fri, 18 Jan 2013 16:37:18 +0000 (-0800) Subject: cache/sqlite.py: unicode_literals X-Git-Tag: v2.2.0_alpha155~19 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=729a0d126771fc5aaae38b1221dad1aebe15345e;p=portage.git cache/sqlite.py: unicode_literals --- 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