mirror of
				https://github.com/msgpack/msgpack-python.git
				synced 2025-11-04 03:20:56 +00:00 
			
		
		
		
	python: Fix Unpacker.feed doesn't accept bytes on Python3.
This commit is contained in:
		
							parent
							
								
									a301c14faa
								
							
						
					
					
						commit
						1e8eeb8ebe
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -253,9 +253,7 @@ cdef class Unpacker(object):
 | 
			
		|||
        template_init(&self.ctx)
 | 
			
		||||
        self.ctx.user.use_list = use_list
 | 
			
		||||
 | 
			
		||||
    def feed(self, next_bytes):
 | 
			
		||||
        if not isinstance(next_bytes, str):
 | 
			
		||||
           raise ValueError, "Argument must be bytes object"
 | 
			
		||||
    def feed(self, bytes next_bytes):
 | 
			
		||||
        self.waiting_bytes.append(next_bytes)
 | 
			
		||||
 | 
			
		||||
    cdef append_buffer(self):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue