Author: brosner
Date: Mon Mar  9 14:06:40 2009
New Revision: 158

Modified:
    trunk/notification/lockfile.py

Log:
Updated lockfile to 0.7 and fixed a Python 2.6 issue. See  
http://code.google.com/p/django-mailer/issues/detail?id=21

Modified: trunk/notification/lockfile.py
==============================================================================
--- trunk/notification/lockfile.py      (original)
+++ trunk/notification/lockfile.py      Mon Mar  9 14:06:40 2009
@@ -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',

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to