def BuildRequestData(filepath=None):
 current_filepath = vimsupport.GetCurrentBufferFilepath()
 if (filepath and (current_filepath != filepath)):
  return {u'filepath': filepath, u'line_num': 1, u'column_num': 1, u'file_data': vimsupport.GetUnsavedAndSpecifiedBufferData(filepath)}
 (line, column) = vimsupport.CurrentLineAndColumn()
 return {u'filepath': current_filepath, u'line_num': (line + 1), u'column_num': (column + 1), u'file_data': vimsupport.GetUnsavedAndSpecifiedBufferData(current_filepath)}

def BuildRequestData ( filepath = None ) : current_filepath = vimsupport . GetCurrentBufferFilepath ( ) if ( filepath and ( current_filepath != filepath ) ) : return { u'filepath' : filepath , u'line_num' : 1 , u'column_num' : 1 , u'file_data' : vimsupport . GetUnsavedAndSpecifiedBufferData ( filepath ) } ( line , column ) = vimsupport . CurrentLineAndColumn ( ) return { u'filepath' : current_filepath , u'line_num' : ( line + 1 ) , u'column_num' : ( column + 1 ) , u'file_data' : vimsupport . GetUnsavedAndSpecifiedBufferData ( current_filepath ) }
build request for the current buffer or the buffer corresponding to |filepath| if specified .