Every line of 'unpack list python' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
219 def unpack_list(self, unpack_item): 220 list = [] 221 while True: 222 x = self.unpack_uint() 223 if x == 0: 224 break 225 if x != 1: 226 raise ConversionError('0 or 1 expected, got %r' % (x,)) 227 item = unpack_item() 228 list.append(item) 229 return list