Skip to content
Browse files

Don't use a list comprehension when we don't need the resulting list.

  • Loading branch information...
1 parent d4da083 commit e1b74d00945ae772300432a51a71e735143c8905 @alex alex committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 django/dispatch/
3 django/dispatch/
@@ -270,7 +270,8 @@ def signals_receiver(sender, **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)
signal.connect(func, **kwargs)
return func

0 comments on commit e1b74d0

Please sign in to comment.
Something went wrong with that request. Please try again.