Fix broken indentation from previous commits.
authorZac Medico <zmedico@gentoo.org>
Sun, 30 Aug 2009 20:09:05 +0000 (20:09 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 30 Aug 2009 20:09:05 +0000 (20:09 -0000)
svn path=/main/trunk/; revision=14173

pym/portage/cache/sqlite.py

index d27a7b00678b88e5f2b5687bc7a322c732c3875c..d5f765459f6d05c4d138371f7a5d600244d96c2f 100644 (file)
@@ -47,11 +47,11 @@ class database(fs_template.FsBased):
 
        def _db_escape_string(self, s):
                """meta escaping, returns quoted string for use in sql statements"""
-        if not isinstance(s, basestring):
-            # Avoid potential UnicodeEncodeError in python-2.x by
-            # only calling str() when it's absolutely necessary.
-            s = str(s)
-        # This is equivalent to the _quote function from pysqlite 1.1.
+               if not isinstance(s, basestring):
+                       # Avoid potential UnicodeEncodeError in python-2.x by
+                       # only calling str() when it's absolutely necessary.
+                       s = str(s)
+               # This is equivalent to the _quote function from pysqlite 1.1.
                return "'%s'" % s.replace("'", "''")
 
        def _db_init_connection(self, config):