summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2013-01-18 08:37:18 -0800
committerZac Medico <zmedico@gentoo.org>2013-01-18 08:37:18 -0800
commit729a0d126771fc5aaae38b1221dad1aebe15345e (patch)
treed2f8062d6853d949d522108cdd1bcb4125371dbb
parentb91eff234f050ada2a7027fd780f138628f3c254 (diff)
downloadportage-729a0d126771fc5aaae38b1221dad1aebe15345e.tar.gz
portage-729a0d126771fc5aaae38b1221dad1aebe15345e.tar.bz2
portage-729a0d126771fc5aaae38b1221dad1aebe15345e.zip
cache/sqlite.py: unicode_literals
-rw-r--r--pym/portage/cache/sqlite.py7
1 files 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