1
1
from __future__ import absolute_import
2
2
3
- from collections import defaultdict , namedtuple
3
+ from collections import defaultdict
4
4
import copy
5
5
import logging
6
6
import socket
@@ -708,7 +708,6 @@ def create_acls(self, acls):
708
708
self ._wait_for_futures ([future ])
709
709
response = future .value
710
710
711
-
712
711
return self ._convert_create_acls_response_to_acls (acls , response )
713
712
714
713
@staticmethod
@@ -1028,7 +1027,6 @@ def _describe_consumer_groups_process_response(self, response):
1028
1027
assert len (response .groups ) == 1
1029
1028
for response_field , response_name in zip (response .SCHEMA .fields , response .SCHEMA .names ):
1030
1029
if isinstance (response_field , Array ):
1031
- described_groups = response .__dict__ [response_name ]
1032
1030
described_groups_field_schema = response_field .array_of
1033
1031
described_group = response .__dict__ [response_name ][0 ]
1034
1032
described_group_information_list = []
@@ -1055,7 +1053,8 @@ def _describe_consumer_groups_process_response(self, response):
1055
1053
described_group_information_list .append (member_information_list )
1056
1054
else :
1057
1055
described_group_information_list .append (described_group_information )
1058
- # Version 3 of the DescribeGroups API introduced the "authorized_operations" field. This will cause the namedtuple to fail
1056
+ # Version 3 of the DescribeGroups API introduced the "authorized_operations" field.
1057
+ # This will cause the namedtuple to fail.
1059
1058
# Therefore, appending a placeholder of None in it.
1060
1059
if response .API_VERSION <= 2 :
1061
1060
described_group_information_list .append (None )
0 commit comments