parameters: (self, key)
return_statement: return msg
docstring: Return a Message representation or raise a KeyError.
docstring_summary: Return a Message representation or raise a KeyError.
docstring_tokens: Return a Message representation or raise a KeyError .
function: def get_message(self, key):
          """Return a Message representation or raise a KeyError."""
          start, stop = self._lookup(key)
          self._file.seek(start)
          from_line = self._file.readline().replace(os.linesep, '')
          string = self._file.read(stop - self._file.tell())
          msg = self._message_factory(string.replace(os.linesep, '\n'))
          msg.set_from(from_line[5:])
          return msg
function_tokens: def get_message ( self , key ) : start , stop = self . _lookup ( key ) self . _file . seek ( start ) from_line = self . _file . readline ( ) . replace ( os . linesep , '' ) string = self . _file . read ( stop - self . _file . tell ( ) ) msg = self . _message_factory ( string . replace ( os . linesep , '\n' ) ) msg . set_from ( from_line [ 5 : ] ) return msg