summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-11-20 22:42:01 +0000
committerZac Medico <zmedico@gentoo.org>2008-11-20 22:42:01 +0000
commit9d70f746b9dee625c78c7bc45d4e6104a656321f (patch)
tree9a7bd031e341ecb8babf55f4013fa02d0e052dfa
parenta95743183720c75f0af8a454dcef788d99a3851d (diff)
downloadportage-9d70f746b9dee625c78c7bc45d4e6104a656321f.tar.gz
portage-9d70f746b9dee625c78c7bc45d4e6104a656321f.tar.bz2
portage-9d70f746b9dee625c78c7bc45d4e6104a656321f.zip
Remove inappropriate backslash escaping inside _db_escape_string().
svn path=/main/trunk/; revision=12010
-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"