comparison sat_frontends/quick_frontend/quick_list_manager.py @ 2624:56f94936df1e

code style reformatting using black
author Goffi <goffi@goffi.org>
date Wed, 27 Jun 2018 20:14:46 +0200
parents 26edcf3a30eb
children 559a625a236b
comparison
equal deleted inserted replaced
2623:49533de4540b 2624:56f94936df1e
23 23
24 def __init__(self, items=None): 24 def __init__(self, items=None):
25 """ 25 """
26 26
27 @param items (list): the suggested list of non tagged items 27 @param items (list): the suggested list of non tagged items
28 """ 28 """
29 self.tagged = [] 29 self.tagged = []
30 self.original = items[:] if items else [] # XXX: copy the list! It will be modified 30 self.original = (
31 self.untagged = items[:] if items else [] # XXX: copy the list! It will be modified 31 items[:] if items else []
32 ) # XXX: copy the list! It will be modified
33 self.untagged = (
34 items[:] if items else []
35 ) # XXX: copy the list! It will be modified
32 self.untagged.sort() 36 self.untagged.sort()
33 37
34 @property 38 @property
35 def items(self): 39 def items(self):
36 """Return a sorted list of all items, tagged or untagged. 40 """Return a sorted list of all items, tagged or untagged.