I ran into some errors running buildPlayerDictionary in Python 3, and had to make some changes.
For example:
I changed print url to print(url)
and
I changed name_data = n.children.next() to name_data = next(n.children)
There were a few other changes I had to make as well. I am fairly new to Python, but my understanding is that the newer Python 3 syntax is also supported by Python 2, so would it make sense to update the syntax to what works for both?
I ran into some errors running buildPlayerDictionary in Python 3, and had to make some changes.
For example:
I changed
print url
toprint(url)
and
I changed
name_data = n.children.next()
toname_data = next(n.children)
There were a few other changes I had to make as well. I am fairly new to Python, but my understanding is that the newer Python 3 syntax is also supported by Python 2, so would it make sense to update the syntax to what works for both?