def __enter__(self):
		""" Activated when used in the with statement.
			Should automatically acquire a lock to be used in the with block.
		"""
		if not self.is_locked:
			self.acquire()
		return self
 Activated when used in the with statement.
			Should automatically acquire a lock to be used in the with block.
		
recipes/Python/577524_Python_Sessions/recipe-577524.py