From 3f18d36404e97c7b9bb3d3c389c07da1b3df7a66 Mon Sep 17 00:00:00 2001 From: Brian Rosner Date: Mon, 9 Mar 2009 21:06:40 +0000 Subject: [PATCH] Updated lockfile to 0.7 and fixed a Python 2.6 issue. See http://code.google.com/p/django-mailer/issues/detail?id=21 git-svn-id: http://django-notification.googlecode.com/svn/trunk@158 590c3fc9-4838-0410-bb95-17a0c9b37ca9 --- notification/lockfile.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/notification/lockfile.py b/notification/lockfile.py index eb2de9f8..d1707030 100644 --- a/notification/lockfile.py +++ b/notification/lockfile.py @@ -53,7 +53,6 @@ import sys import socket import os -import thread import threading import time import errno @@ -63,6 +62,10 @@ threading.current_thread except AttributeError: threading.current_thread = threading.currentThread +try: + # python 2.6 has threading.current_thread so we need to do this separately. + threading.Thread.get_name +except AttributeError: threading.Thread.get_name = threading.Thread.getName __all__ = ['Error', 'LockError', 'LockTimeout', 'AlreadyLocked',