Removed some spurious tabs

This commit is contained in:
Federico Di Gregorio 2009-02-23 21:39:25 +01:00
parent 49bdaf92f6
commit 9b259bba86

View File

@ -143,7 +143,7 @@ class RealDictConnection(_connection):
if name is None: if name is None:
return _connection.cursor(self, cursor_factory=RealDictCursor) return _connection.cursor(self, cursor_factory=RealDictCursor)
else: else:
return _connection.cursor(self, name, cursor_factory=RealDictCursor) return _connection.cursor(self, name, cursor_factory=RealDictCursor)
class RealDictCursor(DictCursorBase): class RealDictCursor(DictCursorBase):
"""A cursor that uses a real dict as the base type for rows. """A cursor that uses a real dict as the base type for rows.
@ -224,10 +224,10 @@ class LoggingConnection(_connection):
def cursor(self, name=None): def cursor(self, name=None):
self._check() self._check()
if name is None: if name is None:
return _connection.cursor(self, cursor_factory=LoggingCursor) return _connection.cursor(self, cursor_factory=LoggingCursor)
else: else:
return _connection.cursor(self, name, cursor_factory=LoggingCursor) return _connection.cursor(self, name, cursor_factory=LoggingCursor)
class LoggingCursor(_cursor): class LoggingCursor(_cursor):
"""A cursor that logs queries using its connection logging facilities.""" """A cursor that logs queries using its connection logging facilities."""
@ -266,10 +266,10 @@ class MinTimeLoggingConnection(LoggingConnection):
def cursor(self, name=None): def cursor(self, name=None):
self._check() self._check()
if name is None: if name is None:
return _connection.cursor(self, cursor_factory=MinTimeLoggingCursor) return _connection.cursor(self, cursor_factory=MinTimeLoggingCursor)
else: else:
return _connection.cursor(self, name, cursor_factory=MinTimeLoggingCursor) return _connection.cursor(self, name, cursor_factory=MinTimeLoggingCursor)
class MinTimeLoggingCursor(LoggingCursor): class MinTimeLoggingCursor(LoggingCursor):
"""The cursor sub-class companion to MinTimeLoggingConnection.""" """The cursor sub-class companion to MinTimeLoggingConnection."""
@ -311,7 +311,6 @@ try:
_ext.register_adapter(uuid.UUID, UUID_adapter) _ext.register_adapter(uuid.UUID, UUID_adapter)
return _ext.UUID return _ext.UUID
except ImportError, e: except ImportError, e:
def register_uuid(oid=None): def register_uuid(oid=None):
"""Create the UUID type and an uuid.UUID adapter. """Create the UUID type and an uuid.UUID adapter.