quietnet icon indicating copy to clipboard operation
quietnet copied to clipboard

Changes for port to python 3

Open HendJordan opened this issue 8 years ago • 3 comments

Changed join in send.py to perform the join for byte objects instead of strings. Replaced xrange with range in quitnet.py because xrange was removed in python 3. Added Queue.py module to repo because this library does not exist in python 3, so that import was failing.

HendJordan avatar Feb 13 '17 07:02 HendJordan

For Queue, simply change the import to this in Python 3:

try:
    # Python 2
    import Queue
except ModuleNotFoundError:
    # Python 3
    import queue as Queue

lrq3000 avatar Mar 14 '20 15:03 lrq3000

Also I can confirm that I did similar changes and the library works

lrq3000 avatar Mar 14 '20 15:03 lrq3000

I'd recommend to just use import queue as Queue since python2 is end of life.

kpcyrd avatar Mar 14 '20 15:03 kpcyrd