Author: brosner
Date: Mon Mar  9 14:00:13 2009
New Revision: 64

Modified:
    trunk/mailer/lockfile.py

Log:
Fixed issue #21 -- Python 2.6 has a threading.current_thread function so we  
need to catch the .get_name AttributeError differently.

Modified: trunk/mailer/lockfile.py
==============================================================================
--- trunk/mailer/lockfile.py    (original)
+++ trunk/mailer/lockfile.py    Mon Mar  9 14:00:13 2009
@@ -62,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