Skip to content

Commit 55824ae

Browse files
committed
Merge branch 'BUG20022580' into release-2.1.1
2 parents c413ab1 + e2d3cb7 commit 55824ae

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/mysql/connector/catch23.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
if PY2:
3737
NUMERIC_TYPES = (int, float, Decimal, HexLiteral, long)
3838
INT_TYPES = (int, long)
39-
UNICODE_TYPE = (unicode,)
39+
UNICODE_TYPES = (unicode,)
4040
STRING_TYPES = (str, unicode)
4141
BYTE_TYPES = (bytearray,)
4242
else:
4343
NUMERIC_TYPES = (int, float, Decimal, HexLiteral)
4444
INT_TYPES = (int,)
45-
UNICODE_TYPE = (str,)
45+
UNICODE_TYPES = (str,)
4646
STRING_TYPES = (str,)
4747
BYTE_TYPES = (bytearray, bytes)
4848

lib/mysql/connector/fabric/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
from .caching import FabricCache
7777
from .balancing import WeightedRoundRobin
7878
from .. import version
79-
from ..catch23 import PY2, isunicode, UNICODE_TYPE
79+
from ..catch23 import PY2, isunicode, UNICODE_TYPES
8080

8181
RESET_CACHE_ON_ERROR = (
8282
errorcode.CR_SERVER_LOST,
@@ -123,7 +123,7 @@
123123
# name: ((valid_types), description, default)
124124
'group': ((str,), "Name of group of servers", None),
125125
'key': (tuple([int, str, datetime.datetime,
126-
datetime.date] + list(UNICODE_TYPE)),
126+
datetime.date] + list(UNICODE_TYPES)),
127127
"Sharding key", None),
128128
'tables': ((tuple, list), "List of tables in query", None),
129129
'mode': ((int,), "Read-Only, Write-Only or Read-Write", MODE_READWRITE),

0 commit comments

Comments
 (0)