def get_change_lines_in_file_for_tag(tag, change_dict):
 cleaned_lines = []
 data_list = change_dict.get('data', [])
 for data_dict in data_list:
  block = data_dict.get('block', '')
  lines = block.split('\\n')
  for line in lines:
   index = line.find(tag)
   if (index > (-1)):
    line = line[index:]
    cleaned_lines.append(line)
 return cleaned_lines

def get_change_lines_in_file_for_tag ( tag , change_dict ) : cleaned_lines = [ ] data_list = change_dict . get ( 'data' , [ ] ) for data_dict in data_list : block = data_dict . get ( 'block' , '' ) lines = block . split ( '\\n' ) for line in lines : index = line . find ( tag ) if ( index > ( - 1 ) ) : line = line [ index : ] cleaned_lines . append ( line ) return cleaned_lines
the received change_dict is the jsonified version of the changes to a file in a changeset being pushed to the tool shed from the command line .