mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +00:00 
			
		
		
		
	Replaced an antiquated pattern.
Thanks Lennart Regebro for pointing it out.
This commit is contained in:
		| @@ -292,7 +292,7 @@ class LazyStream(six.Iterator): | ||||
|  | ||||
|     def read(self, size=None): | ||||
|         def parts(): | ||||
|             remaining = (size is not None and [size] or [self._remaining])[0] | ||||
|             remaining = self._remaining if size is None else size | ||||
|             # do the whole thing in one shot if no limit was provided. | ||||
|             if remaining is None: | ||||
|                 yield b''.join(self) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user