Sebastian Spaeth ccfa747ce6 Use lock with 'with' statement
To make sure, the lock gets released even if we raise an exception between
acquire() and release()

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2011-11-02 11:30:16 +01:00
..
2011-11-02 10:56:42 +01:00
2011-11-02 10:55:42 +01:00
2011-11-02 11:30:16 +01:00
2006-08-12 05:15:55 +01:00