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 socket
|
||||
import os
|
||||
try:
|
||||
import _thread
|
||||
except ImportError:
|
||||
import thread
|
||||
|
||||
try:
|
||||
import pwd
|
||||
|
|
Loading…
Add table
Reference in a new issue