mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 17:06:33 +03:00
Removed some spurious tabs
This commit is contained in:
parent
49bdaf92f6
commit
9b259bba86
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user