mirror of
				https://github.com/msgpack/msgpack-python.git
				synced 2025-10-31 09:30:53 +00:00 
			
		
		
		
	Remove six.b()
This commit is contained in:
		
							parent
							
								
									dee2d87d41
								
							
						
					
					
						commit
						63eab502df
					
				
					 1 changed files with 4 additions and 5 deletions
				
			
		|  | @ -1,16 +1,15 @@ | |||
| #!/usr/bin/env python | ||||
| # coding: utf-8 | ||||
| 
 | ||||
| import six | ||||
| import io | ||||
| import msgpack | ||||
| 
 | ||||
| binarydata = [chr(i) for i in range(256)] | ||||
| binarydata = six.b("".join(binarydata)) | ||||
| 
 | ||||
| binarydata = bytes(bytearray(range(256))) | ||||
| 
 | ||||
| def gen_binary_data(idx): | ||||
|     data = binarydata[:idx % 300] | ||||
|     return data | ||||
|     return binarydata[:idx % 300] | ||||
| 
 | ||||
| 
 | ||||
| def test_exceeding_unpacker_read_size(): | ||||
|     dumpf = io.BytesIO() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 INADA Naoki
						INADA Naoki