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
+5 -1
View File
@@ -14,7 +14,11 @@ __version__ = '1.0.1'
import os
import re
import milter
import thread
try:
import thread
except:
# libmilter uses posix threads
import _thread as thread
from milter import *
from functools import wraps