[PATCH] threadutil: explicitly import get_ident from thread

Sebastian Spaeth Sebastian at SSpaeth.de
Wed May 11 21:31:03 BST 2011

On Wed, 11 May 2011 20:36:50 +0200, Nicolas Sebrecht <nicolas.s-dev at laposte.net> wrote:
> The python module thread is the low-level module we should avoid to use in favor
> of threading. We still need it to support old python because Thread.ident
> doesn't exist before python 2.6:

Reviewed-by: Sebastian Spaeth <Sebastian at SSpaeth.de>

I haven't checked that we do not use the thread module otherwise, but
I believe not. Patches are ok: I think this pattern would be overkill:

t = Thread()
   foo = t.ident
except AttributeError: #python2.5 sucks :)
  foo = thread.get_ident()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20110511/8a83e7c0/attachment-0001.sig>

More information about the OfflineIMAP-project mailing list