summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2020-02-28 00:27:27 +0000
committerGerrit Code Review <gerrit@bbpush.zzzcomputing.com>2020-02-28 00:27:27 +0000
commit132006ba8a714199d4f761b0e66fc2e516e46ba3 (patch)
treed66e54051a92d4842db8dff989ec1d4143f7a586 /lib/sqlalchemy/dialects
parentf78db5e1f68d6b2fb6a7acc04036f682d9a22974 (diff)
parenta836e3df5d973f75bd8330cecb76511b67c13612 (diff)
downloadsqlalchemy-132006ba8a714199d4f761b0e66fc2e516e46ba3.tar.gz
Merge "Remove print statement in favor of print() function in docs and examples"
Diffstat (limited to 'lib/sqlalchemy/dialects')
-rw-r--r--lib/sqlalchemy/dialects/firebird/base.py4
-rw-r--r--lib/sqlalchemy/dialects/firebird/fdb.py2
-rw-r--r--lib/sqlalchemy/dialects/postgresql/base.py8
3 files changed, 7 insertions, 7 deletions
diff --git a/lib/sqlalchemy/dialects/firebird/base.py b/lib/sqlalchemy/dialects/firebird/base.py
index d0711f27c..51bda30a2 100644
--- a/lib/sqlalchemy/dialects/firebird/base.py
+++ b/lib/sqlalchemy/dialects/firebird/base.py
@@ -63,13 +63,13 @@ the SQLAlchemy ``returning()`` method, such as::
# INSERT..RETURNING
result = table.insert().returning(table.c.col1, table.c.col2).\
values(name='foo')
- print result.fetchall()
+ print(result.fetchall())
# UPDATE..RETURNING
raises = empl.update().returning(empl.c.id, empl.c.salary).\
where(empl.c.sales>100).\
values(dict(salary=empl.c.salary * 1.1))
- print raises.fetchall()
+ print(raises.fetchall())
.. _dialects: http://mc-computing.com/Databases/Firebird/SQL_Dialect.html
diff --git a/lib/sqlalchemy/dialects/firebird/fdb.py b/lib/sqlalchemy/dialects/firebird/fdb.py
index 67d406003..46acd0559 100644
--- a/lib/sqlalchemy/dialects/firebird/fdb.py
+++ b/lib/sqlalchemy/dialects/firebird/fdb.py
@@ -42,7 +42,7 @@ accept every argument that Kinterbasdb does.
conn = engine.connect().execution_options(enable_rowcount=True)
r = conn.execute(stmt)
- print r.rowcount
+ print(r.rowcount)
* ``retaining`` - False by default. Setting this to True will pass the
``retaining=True`` keyword argument to the ``.commit()`` and ``.rollback()``
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py
index b30e77704..0a442f256 100644
--- a/lib/sqlalchemy/dialects/postgresql/base.py
+++ b/lib/sqlalchemy/dialects/postgresql/base.py
@@ -273,17 +273,17 @@ use the :meth:`._UpdateBase.returning` method on a per-statement basis::
# INSERT..RETURNING
result = table.insert().returning(table.c.col1, table.c.col2).\
values(name='foo')
- print result.fetchall()
+ print(result.fetchall())
# UPDATE..RETURNING
result = table.update().returning(table.c.col1, table.c.col2).\
where(table.c.name=='foo').values(name='bar')
- print result.fetchall()
+ print(result.fetchall())
# DELETE..RETURNING
result = table.delete().returning(table.c.col1, table.c.col2).\
where(table.c.name=='foo')
- print result.fetchall()
+ print(result.fetchall())
.. _postgresql_insert_on_conflict:
@@ -567,7 +567,7 @@ syntaxes. It uses SQLAlchemy's hints mechanism::
# SELECT ... FROM ONLY ...
result = table.select().with_hint(table, 'ONLY', 'postgresql')
- print result.fetchall()
+ print(result.fetchall())
# UPDATE ONLY ...
table.update(values=dict(foo='bar')).with_hint('ONLY',