summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-11-20 22:43:07 +0000
committerZac Medico <zmedico@gentoo.org>2008-11-20 22:43:07 +0000
commitee60beae541096a85bdaabae9a060f8c8ccc49ab (patch)
treea0c89e9ad9a796d6b69acb2aa44b0bc9da515eb0
parent94440d9c4eec4fbd95ac48b158f89de7bf87615e (diff)
downloadportage-ee60beae541096a85bdaabae9a060f8c8ccc49ab.tar.gz
portage-ee60beae541096a85bdaabae9a060f8c8ccc49ab.tar.bz2
portage-ee60beae541096a85bdaabae9a060f8c8ccc49ab.zip
Remove inappropriate backslash escaping inside _db_escape_string(). (trunk
r12010) svn path=/main/branches/2.1.6/; revision=12011
-rw-r--r--pym/portage/cache/sqlite.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/cache/sqlite.py b/pym/portage/cache/sqlite.py
index a53e8172a..a3d313c47 100644
--- a/pym/portage/cache/sqlite.py
+++ b/pym/portage/cache/sqlite.py
@@ -46,7 +46,8 @@ class database(fs_template.FsBased):
def _db_escape_string(self, s):
"""meta escaping, returns quoted string for use in sql statements"""
- return "'%s'" % str(s).replace("\\","\\\\").replace("'","''")
+ # This is equivalent to the _quote function from pysqlite 1.1.
+ return "'%s'" % str(s).replace("'","''")
def _db_init_connection(self, config):
self._dbpath = self.location + ".sqlite"