xbmc/xbmc — comment on commit 4ef3a390ccdf19d2e91d17da64a195226921a0b4
File:  line 0
By cptspiff:

that's exactly what is going on here.

print foo is valid in python 2.x, but not in python 3.x
somebody tried to cover both using a try/except - it won't fly. just do the print(foo) syntax, it's valid in 2.x and 3.x