thread renamed to _thread in python3

This commit is contained in:
Stuart D. Gathman
2016-09-21 11:35:01 -04:00
parent b4931bebbd
commit 70fa47dac6
+4
View File
@@ -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