Permalink
Browse files

Updated lockfile to 0.7 and fixed a Python 2.6 issue. See http://code…

  • Loading branch information...
1 parent 4236144 commit 3f18d36404e97c7b9bb3d3c389c07da1b3df7a66 @brosner brosner committed Mar 9, 2009
Showing with 4 additions and 1 deletion.
  1. +4 −1 notification/lockfile.py
View
@@ -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',

0 comments on commit 3f18d36

Please sign in to comment.