Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f9ae973

Browse files
committed
Correct indenting in _quote() function.
Fix submitted by Andrew Kuchling <akuchlin@mems-exchange.org>
1 parent dcbbdb1 commit f9ae973

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/interfaces/python/pgdb.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -263,16 +263,16 @@ def _quote(x):
263263
x = "'" + string.replace(
264264
string.replace(str(x), '\\', '\\\\'), "'", "''") + "'"
265265

266-
elif type(x) in (types.IntType, types.LongType, types.FloatType):
266+
elif type(x) in (types.IntType, types.LongType, types.FloatType):
267267
pass
268-
elif x is None:
268+
elif x is None:
269269
x = 'NULL'
270-
elif hasattr(x, '__pg_repr__'):
270+
elif hasattr(x, '__pg_repr__'):
271271
x = x.__pg_repr__()
272-
else:
272+
else:
273273
raise InterfaceError, 'do not know how to handle type %s' % type(x)
274274

275-
return x
275+
return x
276276

277277
def _quoteparams(s, params):
278278
if hasattr(params, 'has_key'):
@@ -401,7 +401,7 @@ def __cmp__(self, other):
401401
INTEGER = pgdbType('int2', 'int4', 'serial')
402402
LONG = pgdbType('int8')
403403
FLOAT = pgdbType('float4', 'float8', 'numeric')
404-
BOOL = pgdbType('bool')
404+
BOOL = pgdbType('bool')
405405
MONEY = pgdbType('money')
406406

407407
# this may be problematic as type are quite different ... I hope it won't hurt

0 commit comments

Comments
 (0)