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/functions.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/functions.py')
| -rw-r--r-- | lib/sqlalchemy/sql/functions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/sql/functions.py b/lib/sqlalchemy/sql/functions.py index 137b1605a..c1720b4c3 100644 --- a/lib/sqlalchemy/sql/functions.py +++ b/lib/sqlalchemy/sql/functions.py @@ -674,7 +674,7 @@ class GenericFunction(util.with_metaclass(_GenericMeta, Function)): class as_utc(GenericFunction): type = DateTime - print select([func.as_utc()]) + print(select([func.as_utc()])) User-defined generic functions can be organized into packages by specifying the "package" attribute when defining @@ -691,7 +691,7 @@ class GenericFunction(util.with_metaclass(_GenericMeta, Function)): The above function would be available from :data:`.func` using the package name ``time``:: - print select([func.time.as_utc()]) + print(select([func.time.as_utc()])) A final option is to allow the function to be accessed from one name in :data:`.func` but to render as a different name. |
