use range instead of xrange, list is only 10 elements and range works in python3

This commit is contained in:
kafene 2018-05-02 14:32:08 -04:00
parent ee4b47aedc
commit 72bae90e06

View file

@ -230,7 +230,7 @@ class TestFileListSorting(trial.unittest.TestCase):
self.assertNotEqual(expected, received)
def _get_fake_lbry_files(self):
return [self._get_fake_lbry_file() for _ in xrange(10)]
return [self._get_fake_lbry_file() for _ in range(10)]
def _get_fake_lbry_file(self):
lbry_file = mock.Mock(spec=ManagedEncryptedFileDownloader)