update import of thread/_thread for python2/3

This commit is contained in:
Michael James 2016-10-21 17:13:10 -05:00
parent 20f23dfcc2
commit 03b7075844

View file

@ -87,7 +87,6 @@ import random
import re import re
import socket import socket
import sys import sys
import _thread
import threading import threading
import time import time
import types import types
@ -95,6 +94,11 @@ import xml.dom.minidom
from io import StringIO from io import StringIO
from functools import reduce from functools import reduce
try:
import _thread
except ImportError:
import thread
# #
# stomp.py version number # stomp.py version number
# #