python3: use listcomp insted of map object generator (#40911)

This commit is contained in:
Nicolas Roche 2020-03-24 12:10:59 +01:00
parent 5311d34d6c
commit 025fa0f2ca
1 changed files with 1 additions and 1 deletions

View File

@ -1903,7 +1903,7 @@ class DoublonMixin(object):
def get_duplicate(self, doublon_id):
try:
p = map(int, doublon_id.split())
p = [int(x) for x in doublon_id.split()]
assert len(p) == 2
p = utils.pair_sort(*p)
return self.get_queryset().get(first_id=p[0], second_id=p[1])