Python 3 compatibility (easy)

34 views
Skip to first unread message

Tyler Wilson

unread,
Mar 18, 2011, 12:47:51 PM3/18/11
to pybonjour
FYI, I installed pybonjour on Python 3.2 (Windows x86) with one very
small change:

pybonjour.py, line 807, change "specs.iteritems()" to "specs.items()"

I have not tested, but I am pretty sure this should work on Python 2.6
and above as well.

Also, the sample on the front page of the pybonjour Google code page
should be edited to use print() function instead of the print
statement.

Thanks,
Tyler
Reply all
Reply to author
Forward
0 new messages