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