mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 22:57:56 -05:00
account for python 2 and 3 with thread import
This commit is contained in:
parent
8d9c615b6a
commit
12d714b438
1 changed files with 4 additions and 1 deletions
|
@ -30,7 +30,10 @@
|
||||||
import struct
|
import struct
|
||||||
import socket
|
import socket
|
||||||
import os
|
import os
|
||||||
|
try:
|
||||||
import _thread
|
import _thread
|
||||||
|
except ImportError:
|
||||||
|
import thread
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import pwd
|
import pwd
|
||||||
|
|
Loading…
Add table
Reference in a new issue