diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2020-02-28 00:27:27 +0000 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@bbpush.zzzcomputing.com> | 2020-02-28 00:27:27 +0000 |
| commit | 132006ba8a714199d4f761b0e66fc2e516e46ba3 (patch) | |
| tree | d66e54051a92d4842db8dff989ec1d4143f7a586 /lib/sqlalchemy/sql/selectable.py | |
| parent | f78db5e1f68d6b2fb6a7acc04036f682d9a22974 (diff) | |
| parent | a836e3df5d973f75bd8330cecb76511b67c13612 (diff) | |
| download | sqlalchemy-132006ba8a714199d4f761b0e66fc2e516e46ba3.tar.gz | |
Merge "Remove print statement in favor of print() function in docs and examples"
Diffstat (limited to 'lib/sqlalchemy/sql/selectable.py')
| -rw-r--r-- | lib/sqlalchemy/sql/selectable.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sqlalchemy/sql/selectable.py b/lib/sqlalchemy/sql/selectable.py index b11e315ea..b8d88e160 100644 --- a/lib/sqlalchemy/sql/selectable.py +++ b/lib/sqlalchemy/sql/selectable.py @@ -3913,10 +3913,10 @@ class Select( >>> table1 = table('t1', column('a'), column('b')) >>> table2 = table('t2', column('a'), column('b')) >>> s1 = select([table1.c.a, table2.c.b]) - >>> print s1 + >>> print(s1) SELECT t1.a, t2.b FROM t1, t2 >>> s2 = s1.with_only_columns([table2.c.b]) - >>> print s2 + >>> print(s2) SELECT t2.b FROM t1 The preferred way to maintain a specific FROM clause @@ -3928,7 +3928,7 @@ class Select( ... select_from(table1.join(table2, ... table1.c.a==table2.c.a)) >>> s2 = s1.with_only_columns([table2.c.b]) - >>> print s2 + >>> print(s2) SELECT t2.b FROM t1 JOIN t2 ON t1.a=t2.a Care should also be taken to use the correct |
