From 8e682f14a13f0bb277ac2c929d4bc44fa5df7ef1 Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Mon, 20 Jun 2016 02:48:48 -0400 Subject: [PATCH] replace xrange with range from six.moves --- beetsplug/lastimport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beetsplug/lastimport.py b/beetsplug/lastimport.py index 2d8cc7008..e31863da7 100644 --- a/beetsplug/lastimport.py +++ b/beetsplug/lastimport.py @@ -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()