From 7197b82ed6531092cd25cd4f11c47add40146b3c Mon Sep 17 00:00:00 2001 From: dotlambda Date: Wed, 12 Mar 2025 17:00:12 -0700 Subject: [PATCH] thread module has been renamed to _thread in Python 3 (#64) --- Milter/greylist.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Milter/greylist.py b/Milter/greylist.py index 5dd8431..ae1f83e 100644 --- a/Milter/greylist.py +++ b/Milter/greylist.py @@ -1,7 +1,10 @@ from __future__ import print_function import time import shelve -import thread +try: + import thread +except: + import _thread as thread import logging import urllib