diff --git a/Milter/__init__.py b/Milter/__init__.py index 8946a49..24e419e 100755 --- a/Milter/__init__.py +++ b/Milter/__init__.py @@ -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