Skip to content

Commit 64d72dc

Browse files
committed
BUG24578507: Fix import error using Python 2.6
This patch fixes the import error when using the Python 2.6 version.
1 parent bdd9520 commit 64d72dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mysqlx/compat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# MySQL Connector/Python - MySQL driver written in Python.
2-
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
33

44
# MySQL Connector/Python is licensed under the terms of the GPLv2
55
# <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
@@ -28,7 +28,7 @@
2828
import binascii
2929

3030

31-
PY3 = sys.version_info.major == 3
31+
PY3 = sys.version_info[0] == 3
3232

3333

3434
if PY3:

0 commit comments

Comments
 (0)