Python 3 syntax
This commit is contained in:
@@ -59,7 +59,7 @@ class AuthenticationTests(unittest.TestCase):
|
|||||||
:return: authentication object suitable for Cluster.connect()
|
:return: authentication object suitable for Cluster.connect()
|
||||||
"""
|
"""
|
||||||
if PROTOCOL_VERSION < 2:
|
if PROTOCOL_VERSION < 2:
|
||||||
return lambda(hostname): dict(username=username, password=password)
|
return lambda hostname: dict(username=username, password=password)
|
||||||
else:
|
else:
|
||||||
return PlainTextAuthProvider(username=username, password=password)
|
return PlainTextAuthProvider(username=username, password=password)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user