parameters: (self, credentials)
docstring: Write Credentials to file.
  
      Args:
        credentials: Credentials, the credentials to store.
  
      Raises:
        CredentialsFileSymbolicLinkError if the file is a symbolic link.
docstring_summary: Write Credentials to file.
docstring_tokens: Write Credentials to file .
function: def locked_put(self, credentials):
      """Write Credentials to file.
  
      Args:
        credentials: Credentials, the credentials to store.
  
      Raises:
        CredentialsFileSymbolicLinkError if the file is a symbolic link.
      """
  
      self._create_file_if_needed()
      self._validate_file()
      f = open(self._filename, 'wb')
      f.write(credentials.to_json())
      f.close()
function_tokens: def locked_put ( self , credentials ) : self . _create_file_if_needed ( ) self . _validate_file ( ) f = open ( self . _filename , 'wb' ) f . write ( credentials . to_json ( ) ) f . close ( )