Import print_function for Python 2 compatibility. · datamk/python-cx_Oracle@ecb6ee4 · GitHub
Skip to content

Commit ecb6ee4

Browse files
Import print_function for Python 2 compatibility.
1 parent 9b1ce30 commit ecb6ee4

38 files changed

Lines changed: 123 additions & 38 deletions

samples/tutorial/aq.py

Lines changed: 3 additions & 1 deletion

samples/tutorial/bind_insert.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
#------------------------------------------------------------------------------
44

55
#------------------------------------------------------------------------------
6-
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
6+
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
77
#------------------------------------------------------------------------------
88

9+
from __future__ import print_function
10+
911
import cx_Oracle
1012

1113
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")

samples/tutorial/bind_query.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
#------------------------------------------------------------------------------
44

55
#------------------------------------------------------------------------------
6-
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
6+
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
77
#------------------------------------------------------------------------------
88

9+
from __future__ import print_function
10+
911
import cx_Oracle
1012

1113
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")

samples/tutorial/bind_sdo.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
#------------------------------------------------------------------------------
44

55
#------------------------------------------------------------------------------
6-
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
6+
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
77
#------------------------------------------------------------------------------
88

9+
from __future__ import print_function
10+
911
import cx_Oracle
1012
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")
1113

samples/tutorial/clob.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
#------------------------------------------------------------------------------
44

55
#------------------------------------------------------------------------------
6-
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
6+
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
77
#------------------------------------------------------------------------------
88

9+
from __future__ import print_function
10+
911
import cx_Oracle
1012

1113
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")

samples/tutorial/clob_string.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
#------------------------------------------------------------------------------
44

55
#------------------------------------------------------------------------------
6-
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
6+
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
77
#------------------------------------------------------------------------------
88

9+
from __future__ import print_function
10+
911
import cx_Oracle
1012

1113
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")

samples/tutorial/connect.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
#------------------------------------------------------------------------------
44

55
#------------------------------------------------------------------------------
6-
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
6+
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
77
#------------------------------------------------------------------------------
88

9+
from __future__ import print_function
10+
911
import cx_Oracle
12+
1013
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")
1114
print("Database version:", con.version)

samples/tutorial/connect_drcp.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
#------------------------------------------------------------------------------
44

55
#------------------------------------------------------------------------------
6-
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
6+
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
77
#------------------------------------------------------------------------------
88

9+
from __future__ import print_function
10+
911
import cx_Oracle
12+
1013
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb:pooled",
1114
cclass="PYTHONHOL", purity=cx_Oracle.ATTR_PURITY_SELF)
1215
print("Database version:", con.version)

samples/tutorial/connect_pool.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
#------------------------------------------------------------------------------
44

55
#------------------------------------------------------------------------------
6-
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
6+
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
77
#------------------------------------------------------------------------------
88

9+
from __future__ import print_function
10+
911
import cx_Oracle
1012
import threading
1113

samples/tutorial/connect_pool2.py

Lines changed: 3 additions & 1 deletion

0 commit comments

Comments
 (0)