account for python 2 and 3 with thread import

This commit is contained in:
Michael James 2016-10-24 15:07:18 -05:00
parent 8d9c615b6a
commit 12d714b438

View file

@ -30,7 +30,10 @@
import struct import struct
import socket import socket
import os import os
try:
import _thread import _thread
except ImportError:
import thread
try: try:
import pwd import pwd