Ejemplo n.º 1
0
 def __exit__(self, type, value, traceback):
     self.depth -= 1
     if self.depth <= 0:
         self.locked_by = None
         Lock.__exit__(self, type, value, traceback)
Ejemplo n.º 2
0
 def __exit__(self, type, value, traceback):
     self.depth -= 1
     if self.depth <= 0:
         self.locked_by = None
         Lock.__exit__(self, type, value, traceback)