parameters: (self, key)
docstring: Remove the keyed message; raise KeyError if it doesn't exist.
docstring_summary: Remove the keyed message; raise KeyError if it doesn't exist.
docstring_tokens: Remove the keyed message ; raise KeyError if it doesn t exist .
function: def remove(self, key):
          """Remove the keyed message; raise KeyError if it doesn't exist."""
          path = os.path.join(self._path, str(key))
          try:
              f = open(path, 'rb+')
          except OSError as e:
              if e.errno == errno.ENOENT:
                  raise KeyError('No message with key: %s' % key)
              else:
                  raise
          else:
              f.close()
              os.remove(path)
function_tokens: def remove ( self , key ) : path = os . path . join ( self . _path , str ( key ) ) try : f = open ( path , 'rb+' ) except OSError as e : if e . errno == errno . ENOENT : raise KeyError ( 'No message with key: %s' % key ) else : raise else : f . close ( ) os . remove ( path )