This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 8ad4557  AMBARI-20886. Make AzureDB schema generator work with Python 
3 (#1407)
8ad4557 is described below

commit 8ad4557682389ca84b32f1234f5d685cc1db9787
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Wed May 30 15:44:09 2018 +0200

    AMBARI-20886. Make AzureDB schema generator work with Python 3 (#1407)
---
 ambari-server/src/main/python/azuredb_create_generator.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ambari-server/src/main/python/azuredb_create_generator.py 
b/ambari-server/src/main/python/azuredb_create_generator.py
index 1794d79..373519c 100755
--- a/ambari-server/src/main/python/azuredb_create_generator.py
+++ b/ambari-server/src/main/python/azuredb_create_generator.py
@@ -21,6 +21,7 @@ limitations under the License.
 # This script transforms SQLServer "create" SQL to idempotent SQL for AzureDB.
 # It is a filter, ie. it expects input on stdin, and prints output on stdout.
 
+from __future__ import print_function
 import fileinput
 import re
 from textwrap import dedent
@@ -82,4 +83,4 @@ deletes.reverse()
 delete_sql = "\n".join(deletes)
 sql = re.sub("BEGIN TRANSACTION", "\g<0>\n" + delete_sql, sql, count=1)
 
-print sql
+print(sql)

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to