Apache Mod-Python - Re: Created: (MODPYTHON-82) mod_python.publisher cache will

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > October 2005 > Re: Created: (MODPYTHON-82) mod_python.publisher cache will





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Created: (MODPYTHON-82) mod_python.publisher cache will
Nick

2005-10-24, 9:26 am

> Instead of the code:
>
> from threading import Lock
>
> It should use:
>
> try:
> from threading import Lock
> except:
> class Lock:
> def acquire(self): pass
> def release(self): pass


I suggest:

try:
from threading import Lock
except:
from dummy_threading import Lock

Nick

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com