diff --git a/pyhive/hive.py b/pyhive/hive.py index 16afd52c..e70c7294 100644 --- a/pyhive/hive.py +++ b/pyhive/hive.py @@ -250,7 +250,7 @@ def __init__( # Password doesn't matter in NONE mode, just needs to be nonempty. password = 'x' - self._transport = thrift_sasl.TSaslClientTransport(lambda : get_installed_sasl(host=host, sasl_auth=sasl_auth, service=kerberos_service_name, username=username, password=password), sasl_auth, socket) + self._transport = thrift_sasl.TSaslClientTransport(lambda: get_installed_sasl(host=host, sasl_auth=sasl_auth, service=kerberos_service_name, username=username, password=password), sasl_auth, socket) else: # All HS2 config options: # https://cwiki.apache.org/confluence/display/Hive/Setting+Up+HiveServer2#SettingUpHiveServer2-Configuration