def GetUnsavedAndSpecifiedBufferData(including_filepath):
 buffers_data = {}
 for buffer_object in vim.buffers:
  buffer_filepath = GetBufferFilepath(buffer_object)
  if (not (BufferModified(buffer_object) or (buffer_filepath == including_filepath))):
   continue
  buffers_data[buffer_filepath] = {u'contents': (JoinLinesAsUnicode(buffer_object) + u'\n'), u'filetypes': FiletypesForBuffer(buffer_object)}
 return buffers_data

def GetUnsavedAndSpecifiedBufferData ( including_filepath ) : buffers_data = { } for buffer_object in vim . buffers : buffer_filepath = GetBufferFilepath ( buffer_object ) if ( not ( BufferModified ( buffer_object ) or ( buffer_filepath == including_filepath ) ) ) : continue buffers_data [ buffer_filepath ] = { u'contents' : ( JoinLinesAsUnicode ( buffer_object ) + u'\n' ) , u'filetypes' : FiletypesForBuffer ( buffer_object ) } return buffers_data
build part of the request containing the contents and filetypes of all dirty buffers as well as the buffer with filepath |including_filepath| .