summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/pypostgresql.py
diff options
context:
space:
mode:
authorDiana Clarke <diana.joan.clarke@gmail.com>2012-11-19 22:28:52 -0500
committerDiana Clarke <diana.joan.clarke@gmail.com>2012-11-19 22:28:52 -0500
commite0dc5ed803de7a57de033c16f2fa0044b59ce374 (patch)
tree7435132c0a11c71f2479a9674c443e4acb5c25e5 /lib/sqlalchemy/dialects/postgresql/pypostgresql.py
parentfb18595f426a9026c946840e2fb2f0e0dbd29bef (diff)
downloadsqlalchemy-e0dc5ed803de7a57de033c16f2fa0044b59ce374.tar.gz
just a pep8 pass of lib/sqlalchemy/dialects/postgresql
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/pypostgresql.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/pypostgresql.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/pypostgresql.py b/lib/sqlalchemy/dialects/postgresql/pypostgresql.py
index e7023610b..879bced45 100644
--- a/lib/sqlalchemy/dialects/postgresql/pypostgresql.py
+++ b/lib/sqlalchemy/dialects/postgresql/pypostgresql.py
@@ -18,6 +18,7 @@ from ... import types as sqltypes
from .base import PGDialect, PGExecutionContext
from ... import processors
+
class PGNumeric(sqltypes.Numeric):
def bind_processor(self, dialect):
return processors.to_str
@@ -28,9 +29,11 @@ class PGNumeric(sqltypes.Numeric):
else:
return processors.to_float
+
class PGExecutionContext_pypostgresql(PGExecutionContext):
pass
+
class PGDialect_pypostgresql(PGDialect):
driver = 'pypostgresql'
@@ -48,8 +51,10 @@ class PGDialect_pypostgresql(PGDialect):
colspecs = util.update_copy(
PGDialect.colspecs,
{
- sqltypes.Numeric : PGNumeric,
- sqltypes.Float: sqltypes.Float, # prevents PGNumeric from being used
+ sqltypes.Numeric: PGNumeric,
+
+ # prevents PGNumeric from being used
+ sqltypes.Float: sqltypes.Float,
}
)