Merge pull request #163 from tetrapus/develop
x.next() -> next(x) for Python 3 compatibility
This commit is contained in:
commit
0d8763f2da
|
@ -1814,8 +1814,8 @@ class _Opus(_BaseObject, _Taggable):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
lfm = doc.getElementsByTagName('lfm')[0]
|
lfm = doc.getElementsByTagName('lfm')[0]
|
||||||
opus = self._get_children_by_tag_name(lfm, self.ws_prefix).next()
|
opus = next(self._get_children_by_tag_name(lfm, self.ws_prefix))
|
||||||
mbid = self._get_children_by_tag_name(opus, "mbid").next()
|
mbid = next(self._get_children_by_tag_name(opus, "mbid"))
|
||||||
return mbid.firstChild.nodeValue
|
return mbid.firstChild.nodeValue
|
||||||
except StopIteration:
|
except StopIteration:
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in a new issue