From cfa0e38ee7a42b34c830c4eee90d1468668f50a6 Mon Sep 17 00:00:00 2001 From: Joey Tuong Date: Fri, 25 Dec 2015 13:54:38 +1100 Subject: [PATCH] x.next() -> next(x) for python3 compat --- pylast/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pylast/__init__.py b/pylast/__init__.py index c1879c7..a90f304 100644 --- a/pylast/__init__.py +++ b/pylast/__init__.py @@ -1814,8 +1814,8 @@ class _Opus(_BaseObject, _Taggable): try: lfm = doc.getElementsByTagName('lfm')[0] - opus = self._get_children_by_tag_name(lfm, self.ws_prefix).next() - mbid = self._get_children_by_tag_name(opus, "mbid").next() + opus = next(self._get_children_by_tag_name(lfm, self.ws_prefix)) + mbid = next(self._get_children_by_tag_name(opus, "mbid")) return mbid.firstChild.nodeValue except StopIteration: return None