Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit e1b74d00945ae772300432a51a71e735143c8905 1 parent d4da083
@alex alex authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/dispatch/dispatcher.py
View
3  django/dispatch/dispatcher.py
@@ -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)
else:
signal.connect(func, **kwargs)
return func
Please sign in to comment.
Something went wrong with that request. Please try again.