Revert "use six.integer_types in library" for now

It will return post bugfix release
This reverts commit 196176f180.
This commit is contained in:
Johnny Robeson 2016-06-20 00:15:28 -04:00
parent 196176f180
commit ae4fd64d3a

View file

@ -23,7 +23,6 @@ import unicodedata
import time
import re
from unidecode import unidecode
import six
from beets import logging
from beets.mediafile import MediaFile, MutagenError, UnreadableFileError
@ -566,7 +565,7 @@ class Item(LibModel):
for key in self._media_fields:
value = getattr(mediafile, key)
if isinstance(value, six.integer_types):
if isinstance(value, (int, long)):
if value.bit_length() > 63:
value = 0
self[key] = value