Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r14173 - main/trunk/pym/portage/cache
Date: Sun, 30 Aug 2009 15:00:10
Message-Id: E1Mhqi1-0000cI-Tr@stork.gentoo.org
1 Author: zmedico
2 Date: 2009-08-30 20:09:05 +0000 (Sun, 30 Aug 2009)
3 New Revision: 14173
4
5 Modified:
6 main/trunk/pym/portage/cache/sqlite.py
7 Log:
8 Fix broken indentation from previous commits.
9
10
11 Modified: main/trunk/pym/portage/cache/sqlite.py
12 ===================================================================
13 --- main/trunk/pym/portage/cache/sqlite.py 2009-08-30 20:05:57 UTC (rev 14172)
14 +++ main/trunk/pym/portage/cache/sqlite.py 2009-08-30 20:09:05 UTC (rev 14173)
15 @@ -47,11 +47,11 @@
16
17 def _db_escape_string(self, s):
18 """meta escaping, returns quoted string for use in sql statements"""
19 - if not isinstance(s, basestring):
20 - # Avoid potential UnicodeEncodeError in python-2.x by
21 - # only calling str() when it's absolutely necessary.
22 - s = str(s)
23 - # This is equivalent to the _quote function from pysqlite 1.1.
24 + if not isinstance(s, basestring):
25 + # Avoid potential UnicodeEncodeError in python-2.x by
26 + # only calling str() when it's absolutely necessary.
27 + s = str(s)
28 + # This is equivalent to the _quote function from pysqlite 1.1.
29 return "'%s'" % s.replace("'", "''")
30
31 def _db_init_connection(self, config):