mirror of
https://github.com/beetbox/beets.git
synced 2026-02-25 16:53:17 +01:00
replace xrange with range from six.moves
This commit is contained in:
parent
31cca684f2
commit
8e682f14a1
1 changed files with 2 additions and 1 deletions
|
|
@ -15,6 +15,7 @@
|
|||
|
||||
from __future__ import division, absolute_import, print_function
|
||||
|
||||
from six.moves import range
|
||||
import pylast
|
||||
from pylast import TopItem, _extract, _number
|
||||
from beets import ui
|
||||
|
|
@ -192,7 +193,7 @@ def process_tracks(lib, tracks, log):
|
|||
total_fails = 0
|
||||
log.info(u'Received {0} tracks in this page, processing...', total)
|
||||
|
||||
for num in xrange(0, total):
|
||||
for num in range(0, total):
|
||||
song = None
|
||||
trackid = tracks[num]['mbid'].strip()
|
||||
artist = tracks[num]['artist'].get('name', '').strip()
|
||||
|
|
|
|||
Loading…
Reference in a new issue