summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/cache/sqlite.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/cache/sqlite.py b/pym/portage/cache/sqlite.py
index 0a8424880..81c076257 100644
--- a/pym/portage/cache/sqlite.py
+++ b/pym/portage/cache/sqlite.py
@@ -48,7 +48,7 @@ class database(fs_template.FsBased):
def _db_escape_string(self, s):
"""meta escaping, returns quoted string for use in sql statements"""
# This is equivalent to the _quote function from pysqlite 1.1.
- return "'%s'" % str(s).replace("'","''")
+ return "'%s'" % s.replace("'", "''")
def _db_init_connection(self, config):
self._dbpath = self.location + ".sqlite"