mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
test/exhaustive: Replace map by list comprehension
Fixes #331. https://github.com/checkpoint-restore/criu/issues/331 Signed-off-by: Harshavardhan Unnibhavi <hvubfoss@gmail.com> Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
parent
4eb2df5ae6
commit
9c9d151693
1 changed files with 1 additions and 1 deletions
|
|
@ -415,7 +415,7 @@ class state:
|
|||
# one in which. At the same time really different states
|
||||
# shouldn't map to the same string.
|
||||
def describe(self):
|
||||
sks = map(lambda x: x.describe(self), self.sockets)
|
||||
sks = [x.describe(self) for x in self.sockets]
|
||||
sks = sorted(sks)
|
||||
return '_'.join(sks)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue