def _quote_slashes(match):
 matched = match.group(0)
 if (matched == ';'):
  return ';;'
 elif (matched == '/'):
  return ';_'
 else:
  return matched

def _quote_slashes ( match ) : matched = match . group ( 0 ) if ( matched == ';' ) : return ';;' elif ( matched == '/' ) : return ';_' else : return matched
helper function for quote_slashes .