Skip to content

Commit bc2c18b

Browse files
committed
Fix sending authentication information in python 3
1 parent d1a4459 commit bc2c18b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mysqlx/authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class PlainAuthPlugin(object):
6969
def __init__(self, username, password):
7070
self._username = username
7171
self._password = password.encode("utf-8") \
72-
if isinstance(password, UNICODE_TYPES) else password
72+
if isinstance(password, UNICODE_TYPES) and not PY3 else password
7373

7474
def name(self):
7575
return "Plain Authentication Plugin"

0 commit comments

Comments
 (0)