Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c7a2311

Browse filesBrowse files
Remove remaining references to Python 2 syntax.
1 parent db1b7ae commit c7a2311
Copy full SHA for c7a2311

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

46 files changed

+42
-139
lines changed

‎doc/src/user_guide/installation.rst

Copy file name to clipboardExpand all lines: doc/src/user_guide/installation.rst
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ Quick Start cx_Oracle Installation
8484
8585
# myscript.py
8686
87-
from __future__ import print_function
88-
8987
import cx_Oracle
9088
9189
# Connect as user "hr" with password "welcome" to the "orclpdb1" service running on this computer.

‎doc/src/user_guide/introduction.rst

Copy file name to clipboardExpand all lines: doc/src/user_guide/introduction.rst
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ Create a script ``query.py`` as shown below:
7171
7272
# query.py
7373
74-
from __future__ import print_function
7574
import cx_Oracle
7675
7776
# Establish the database connection

‎samples/tutorial/Python-and-Oracle-Database-Scripting-for-the-Future.html

Copy file name to clipboardExpand all lines: samples/tutorial/Python-and-Oracle-Database-Scripting-for-the-Future.html
-6Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2298,12 +2298,6 @@ <h4>Printing</h4>
22982298
<pre>print('Hello, World!')
22992299
print('Value:', count)</pre>
23002300

2301-
<P>Note the <a
2302-
href="https://docs.python.org/3.0/whatsnew/3.0.html#print-is-a-function"
2303-
><code>print</code></a> syntax and output is different in Python
2304-
2. Examples in this lab use <code>from __future__ import print_function
2305-
</code> so that they run with Python 2 and Python 3.</p>
2306-
23072301
<h4>Data Structures</h4>
23082302

23092303
<p>Associative arrays are called 'dictionaries':</p>

‎samples/tutorial/aq.py

Copy file name to clipboardExpand all lines: samples/tutorial/aq.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

55
#------------------------------------------------------------------------------
6-
# Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
6+
# Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
77
#------------------------------------------------------------------------------
88

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import decimal
1311
import db_config

‎samples/tutorial/bind_insert.py

Copy file name to clipboardExpand all lines: samples/tutorial/bind_insert.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

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

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import db_config
1311

‎samples/tutorial/bind_query.py

Copy file name to clipboardExpand all lines: samples/tutorial/bind_query.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

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

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import db_config
1311

‎samples/tutorial/bind_sdo.py

Copy file name to clipboardExpand all lines: samples/tutorial/bind_sdo.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

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

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import db_config
1311

‎samples/tutorial/clob.py

Copy file name to clipboardExpand all lines: samples/tutorial/clob.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

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

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import db_config
1311

‎samples/tutorial/clob_string.py

Copy file name to clipboardExpand all lines: samples/tutorial/clob_string.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

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

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import db_config
1311

‎samples/tutorial/connect.py

Copy file name to clipboardExpand all lines: samples/tutorial/connect.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

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

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import db_config
1311

‎samples/tutorial/connect_drcp.py

Copy file name to clipboardExpand all lines: samples/tutorial/connect_drcp.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

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

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import db_config
1311

‎samples/tutorial/connect_pool.py

Copy file name to clipboardExpand all lines: samples/tutorial/connect_pool.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

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

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import threading
1311
import db_config

‎samples/tutorial/connect_pool2.py

Copy file name to clipboardExpand all lines: samples/tutorial/connect_pool2.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

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

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import threading
1311
import db_config

‎samples/tutorial/plsql_func.py

Copy file name to clipboardExpand all lines: samples/tutorial/plsql_func.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

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

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import db_config
1311

‎samples/tutorial/plsql_proc.py

Copy file name to clipboardExpand all lines: samples/tutorial/plsql_proc.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

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

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import db_config
1311

‎samples/tutorial/query.py

Copy file name to clipboardExpand all lines: samples/tutorial/query.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

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

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import db_config
1311

‎samples/tutorial/query2.py

Copy file name to clipboardExpand all lines: samples/tutorial/query2.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

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

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import db_config
1311

‎samples/tutorial/query_arraysize.py

Copy file name to clipboardExpand all lines: samples/tutorial/query_arraysize.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

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

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import time
1311
import db_config

‎samples/tutorial/query_many.py

Copy file name to clipboardExpand all lines: samples/tutorial/query_many.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

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

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import db_config
1311

‎samples/tutorial/query_one.py

Copy file name to clipboardExpand all lines: samples/tutorial/query_one.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

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

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import db_config
1311

‎samples/tutorial/query_scroll.py

Copy file name to clipboardExpand all lines: samples/tutorial/query_scroll.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

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

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import db_config
1311

‎samples/tutorial/rowfactory.py

Copy file name to clipboardExpand all lines: samples/tutorial/rowfactory.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

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

9-
from __future__ import print_function
10-
119
import collections
1210
import cx_Oracle
1311
import db_config

‎samples/tutorial/soda.py

Copy file name to clipboardExpand all lines: samples/tutorial/soda.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

55
#------------------------------------------------------------------------------
6-
# Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
6+
# Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
77
#------------------------------------------------------------------------------
88

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import db_config
1311

‎samples/tutorial/solutions/aq-dequeue.py

Copy file name to clipboardExpand all lines: samples/tutorial/solutions/aq-dequeue.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

55
#------------------------------------------------------------------------------
6-
# Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
6+
# Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
77
#------------------------------------------------------------------------------
88

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import decimal
1311
import db_config

‎samples/tutorial/solutions/aq-enqueue.py

Copy file name to clipboardExpand all lines: samples/tutorial/solutions/aq-enqueue.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

55
#------------------------------------------------------------------------------
6-
# Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
6+
# Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
77
#------------------------------------------------------------------------------
88

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import decimal
1311
import db_config

‎samples/tutorial/solutions/aq-queuestart.py

Copy file name to clipboardExpand all lines: samples/tutorial/solutions/aq-queuestart.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

55
#------------------------------------------------------------------------------
6-
# Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
6+
# Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
77
#------------------------------------------------------------------------------
88

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import decimal
1311
import db_config

‎samples/tutorial/solutions/bind_insert.py

Copy file name to clipboardExpand all lines: samples/tutorial/solutions/bind_insert.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

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

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import db_config
1311

‎samples/tutorial/solutions/bind_sdo.py

Copy file name to clipboardExpand all lines: samples/tutorial/solutions/bind_sdo.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

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

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import db_config
1311

‎samples/tutorial/solutions/connect_pool2.py

Copy file name to clipboardExpand all lines: samples/tutorial/solutions/connect_pool2.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

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

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import threading
1311
import time

‎samples/tutorial/solutions/query-2.py

Copy file name to clipboardExpand all lines: samples/tutorial/solutions/query-2.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

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

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import db_config
1311

‎samples/tutorial/solutions/query.py

Copy file name to clipboardExpand all lines: samples/tutorial/solutions/query.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#------------------------------------------------------------------------------
44

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

9-
from __future__ import print_function
10-
119
import cx_Oracle
1210
import db_config
1311

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.