original_docstring: Release our lock if we have one
docstring: Release our lock if we have one
docstring_tokens: Release our lock if we have one
code: def _release_lock(self):
  		"""Release our lock if we have one"""
  		if not self._has_lock():
  			return
  			
  		# if someone removed our file beforhand, lets just flag this issue
  		# instead of failing, to make it more usable.
  		lfp = self._lock_file_path()
  		try:
  			# on bloody windows, the file needs write permissions to be removable.
  			# Why ... 
  			if os.name == 'nt':
  				os.chmod(lfp, 0777)
  			# END handle win32
  			os.remove(lfp)
  		except OSError:
  			pass
  		self._owns_lock = False
code_tokens: def _release_lock ( self ) : if not self . _has_lock ( ) : return lfp = self . _lock_file_path ( ) try : if os . name == 'nt' : os . chmod ( lfp , 0777 ) os . remove ( lfp ) except OSError : pass self . _owns_lock = False
short_docstring: Release our lock if we have one
short_docstring_tokens: Release our lock if we have one
comment: """Release our lock if we have one"""$SEP$# if someone removed our file beforhand, lets just flag this issue$SEP$# instead of failing, to make it more usable.$SEP$# on bloody windows, the file needs write permissions to be removable.$SEP$# Why ... $SEP$# END handle win32