python3: use listcomp insted of map object generator (#40911)
This commit is contained in:
parent
5311d34d6c
commit
025fa0f2ca
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue