From 12d714b4386e83351ffafc35340d2a61496eca54 Mon Sep 17 00:00:00 2001 From: Michael James Date: Mon, 24 Oct 2016 15:07:18 -0500 Subject: [PATCH] account for python 2 and 3 with thread import --- .../dstypes/com/raytheon/uf/common/message/WsId.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/message/WsId.py b/dynamicserialize/dstypes/com/raytheon/uf/common/message/WsId.py index f9814b9..579a7e6 100644 --- a/dynamicserialize/dstypes/com/raytheon/uf/common/message/WsId.py +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/message/WsId.py @@ -30,7 +30,10 @@ import struct import socket import os -import _thread +try: + import _thread +except ImportError: + import thread try: import pwd