thread renamed to _thread in python3
This commit is contained in:
@@ -14,7 +14,11 @@ __version__ = '1.0.1'
|
|||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import milter
|
import milter
|
||||||
|
try:
|
||||||
import thread
|
import thread
|
||||||
|
except:
|
||||||
|
# libmilter uses posix threads
|
||||||
|
import _thread as thread
|
||||||
|
|
||||||
from milter import *
|
from milter import *
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
|
|||||||
Reference in New Issue
Block a user