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 socket
import sys
import _thread
import threading
import time
import types
@ -95,6 +94,11 @@ import xml.dom.minidom
from io import StringIO
from functools import reduce
try:
import _thread
except ImportError:
import thread
#
# stomp.py version number
#