Remove remaining references to Python 2 syntax. · troyanthony06/python-cx_Oracle@c7a2311 · GitHub
Skip to content

Commit c7a2311

Browse files
Remove remaining references to Python 2 syntax.
1 parent db1b7ae commit c7a2311

46 files changed

Lines changed: 42 additions & 139 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

doc/src/user_guide/installation.rst

Lines changed: 0 additions & 2 deletions

doc/src/user_guide/introduction.rst

Lines 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

Lines 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

Lines 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

Lines 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

Lines 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

Lines 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

Lines 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

Lines 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

Lines changed: 1 addition & 3 deletions

0 commit comments

Comments
 (0)