mirror of
https://github.com/django/django.git
synced 2025-10-26 15:16:09 +00:00
Fixed #23968 -- Replaced list comprehension with generators and dict comprehension
This commit is contained in:
@@ -43,10 +43,10 @@ class Node(object):
|
||||
|
||||
def __str__(self):
|
||||
if self.negated:
|
||||
return '(NOT (%s: %s))' % (self.connector, ', '.join([str(c) for c
|
||||
in self.children]))
|
||||
return '(%s: %s)' % (self.connector, ', '.join([str(c) for c in
|
||||
self.children]))
|
||||
return '(NOT (%s: %s))' % (self.connector, ', '.join(str(c) for c
|
||||
in self.children))
|
||||
return '(%s: %s)' % (self.connector, ', '.join(str(c) for c in
|
||||
self.children))
|
||||
|
||||
def __repr__(self):
|
||||
return "<%s: %s>" % (self.__class__.__name__, self)
|
||||
|
||||
Reference in New Issue
Block a user