From 70fa47dac6c83194e0755b20bce726be4385f7d1 Mon Sep 17 00:00:00 2001 From: "Stuart D. Gathman" Date: Wed, 21 Sep 2016 11:35:01 -0400 Subject: [PATCH] thread renamed to _thread in python3 --- Milter/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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