You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ad...@apache.org on 2018/05/30 13:44:19 UTC

[ambari] branch trunk updated: AMBARI-20886. Make AzureDB schema generator work with Python 3 (#1407)

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 <64...@users.noreply.github.com>
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
adoroszlai@apache.org.