Import print_function for Python 2 compatibility.
This commit is contained in:
parent
9b1ce308b1
commit
ecb6ee4442
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
import decimal
|
||||
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")
|
||||
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")
|
||||
|
||||
@ -3,9 +3,12 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")
|
||||
print("Database version:", con.version)
|
||||
|
||||
@ -3,10 +3,13 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb:pooled",
|
||||
cclass="PYTHONHOL", purity=cx_Oracle.ATTR_PURITY_SELF)
|
||||
print("Database version:", con.version)
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
import threading
|
||||
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
import threading
|
||||
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")
|
||||
|
||||
@ -3,8 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")
|
||||
|
||||
@ -3,10 +3,13 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")
|
||||
|
||||
cur = con.cursor()
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
import time
|
||||
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import collections
|
||||
import cx_Oracle
|
||||
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
import decimal
|
||||
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
import decimal
|
||||
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
import decimal
|
||||
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
import threading
|
||||
import time
|
||||
|
||||
@ -3,10 +3,13 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")
|
||||
|
||||
cur = con.cursor()
|
||||
|
||||
@ -3,10 +3,13 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")
|
||||
|
||||
cur = con.cursor()
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import collections
|
||||
import cx_Oracle
|
||||
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
class MyConnection(cx_Oracle.Connection):
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
import decimal
|
||||
|
||||
|
||||
@ -3,10 +3,13 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")
|
||||
|
||||
cur = con.cursor()
|
||||
|
||||
@ -3,10 +3,13 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")
|
||||
|
||||
print(cx_Oracle.version)
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
class MyConnection(cx_Oracle.Connection):
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")
|
||||
|
||||
@ -3,9 +3,11 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
con = cx_Oracle.connect("pythonhol", "welcome", "localhost/orclpdb")
|
||||
|
||||
@ -3,10 +3,13 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Copyright 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
con = cx_Oracle.connect('pythonhol/welcome@localhost/orclpdb')
|
||||
|
||||
print(cx_Oracle.version)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user