mirror of
https://github.com/beetbox/beets.git
synced 2026-02-11 18:02:10 +01:00
Merge pull request #2018 from jrobeson/py3-compat-confit-next-if-py3
remove unneeded if PY3 in iter_first
This commit is contained in:
commit
038c36b974
1 changed files with 1 additions and 4 deletions
|
|
@ -58,10 +58,7 @@ def iter_first(sequence):
|
|||
"""
|
||||
it = iter(sequence)
|
||||
try:
|
||||
if PY3:
|
||||
return next(it)
|
||||
else:
|
||||
return it.next()
|
||||
return next(it)
|
||||
except StopIteration:
|
||||
raise ValueError()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue