From 03b7075844459e754218ddaa78a54ec333b26f6c Mon Sep 17 00:00:00 2001 From: Michael James Date: Fri, 21 Oct 2016 17:13:10 -0500 Subject: [PATCH] update import of thread/_thread for python2/3 --- awips/stomp.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/awips/stomp.py b/awips/stomp.py index 219c369..59ff604 100644 --- a/awips/stomp.py +++ b/awips/stomp.py @@ -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 #