11from __future__ import absolute_import
22
3- from collections import defaultdict , namedtuple
3+ from collections import defaultdict
44import copy
55import logging
66import socket
@@ -708,7 +708,6 @@ def create_acls(self, acls):
708708 self ._wait_for_futures ([future ])
709709 response = future .value
710710
711-
712711 return self ._convert_create_acls_response_to_acls (acls , response )
713712
714713 @staticmethod
@@ -1028,7 +1027,6 @@ def _describe_consumer_groups_process_response(self, response):
10281027 assert len (response .groups ) == 1
10291028 for response_field , response_name in zip (response .SCHEMA .fields , response .SCHEMA .names ):
10301029 if isinstance (response_field , Array ):
1031- described_groups = response .__dict__ [response_name ]
10321030 described_groups_field_schema = response_field .array_of
10331031 described_group = response .__dict__ [response_name ][0 ]
10341032 described_group_information_list = []
@@ -1055,7 +1053,8 @@ def _describe_consumer_groups_process_response(self, response):
10551053 described_group_information_list .append (member_information_list )
10561054 else :
10571055 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.
10591058 # Therefore, appending a placeholder of None in it.
10601059 if response .API_VERSION <= 2 :
10611060 described_group_information_list .append (None )
0 commit comments