mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Don't use a list comprehension when we don't need the resulting list.
This commit is contained in:
		| @@ -270,7 +270,8 @@ def receiver(signal, **kwargs): | ||||
|     """ | ||||
|     def _decorator(func): | ||||
|         if isinstance(signal, (list, tuple)): | ||||
|             [s.connect(func, **kwargs) for s in signal] | ||||
|             for s in signal: | ||||
|                 s.connect(func, **kwargs) | ||||
|         else: | ||||
|             signal.connect(func, **kwargs) | ||||
|         return func | ||||
|   | ||||
		Reference in New Issue
	
	Block a user