mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 14:57:56 -05:00
update import of thread/_thread for python2/3
This commit is contained in:
parent
20f23dfcc2
commit
03b7075844
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Reference in a new issue