phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joshelser <...@git.apache.org>
Subject [GitHub] phoenix pull request #186: cleanup sqlline-thin.py using python idioms.
Date Mon, 01 Aug 2016 18:05:27 GMT
Github user joshelser commented on a diff in the pull request:

    https://github.com/apache/phoenix/pull/186#discussion_r73024052
  
    --- Diff: bin/sqlline-thin.py ---
    @@ -18,64 +18,58 @@
     # limitations under the License.
     #
     ############################################################################
    -
    +from __future__ import print_function
    --- End diff --
    
    I was curious what this was doing and it looks like it's some magic to make print in python3
work like it does in python2 (http://stackoverflow.com/questions/4560804/why-do-we-invoke-print-after-importing-print-function-in-python-2-6).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message