original_docstring:  Searches |text| for instances of files in reference_support_info and updates the relative path to be correct for the new ref file location
docstring: Searches |text| for instances of files in reference_support_info and updates the relative path to be correct for the new ref file location
docstring_tokens: Searches |text| for instances of files in reference_support_info and updates the relative path to be correct for the new ref file location
code: def convert_reference_relpaths(self, text):
          """ Searches |text| for instances of files in reference_support_info and updates the relative path to be correct for the new ref file location"""
          converted = text
          for path in self.reference_support_info['files']:
              if converted.find(path) != -1:
                  # FIXME: This doesn't handle an edge case where simply removing the relative path doesn't work.
                  # See http://webkit.org/b/135677 for details.
                  new_path = re.sub(re.escape(self.reference_support_info['reference_relpath']), '', path, 1)
                  converted = re.sub(re.escape(path), new_path, converted)
  
          return converted
code_tokens: def convert_reference_relpaths ( self , text ) : converted = text for path in self . reference_support_info [ 'files' ] : if converted . find ( path ) != - 1 : new_path = re . sub ( re . escape ( self . reference_support_info [ 'reference_relpath' ] ) , '' , path , 1 ) converted = re . sub ( re . escape ( path ) , new_path , converted ) return converted
short_docstring: Searches |text| for instances of files in reference_support_info and updates the relative path to be correct for the new ref file location
short_docstring_tokens: Searches |text| for instances of files in reference_support_info and updates the relative path to be correct for the new ref file location
comment: """ Searches |text| for instances of files in reference_support_info and updates the relative path to be correct for the new ref file location"""$SEP$# FIXME: This doesn't handle an edge case where simply removing the relative path doesn't work.$SEP$# See http://webkit.org/b/135677 for details.