chrome/test/chromedriver/log_replay/client_replay_test.py
def SubstituteVariableEntries(s):
  """Identifies and removes items that can legitimately vary between runs."""
  white_list = r'(("(id|userDataDir|frameId|version' \
               r'|element-6066-11e4-a52e-4f735466cecf|message|timestamp' \
               r'|expiry|chromedriverVersion|sessionId)": ' \
               r'("[0-9]\.[0-9]*(\.[0-9]*)? \([a-f0-9]*\)"|[^\s},]*))' \
               r'|CDwindow-[A-F0-9]*|cd_frame_id_="[a-f0-9]*")'

  return re.sub(white_list, "<variable_item>", s)
Identifies and removes items that can legitimately vary between runs.
Identifies and removes items that can legitimately vary between runs.
Identifies and removes items that can legitimately vary between runs .
def SubstituteVariableEntries(s):
  white_list = r'(("(id|userDataDir|frameId|version' \
               r'|element-6066-11e4-a52e-4f735466cecf|message|timestamp' \
               r'|expiry|chromedriverVersion|sessionId)": ' \
               r'("[0-9]\.[0-9]*(\.[0-9]*)? \([a-f0-9]*\)"|[^\s},]*))' \
               r'|CDwindow-[A-F0-9]*|cd_frame_id_="[a-f0-9]*")'
  return re.sub(white_list, "<variable_item>", s)
def SubstituteVariableEntries ( s ) : white_list = r'(("(id|userDataDir|frameId|version' r'|element-6066-11e4-a52e-4f735466cecf|message|timestamp' r'|expiry|chromedriverVersion|sessionId)": ' r'("[0-9]\.[0-9]*(\.[0-9]*)? \([a-f0-9]*\)"|[^\s},]*))' r'|CDwindow-[A-F0-9]*|cd_frame_id_="[a-f0-9]*")' return re . sub ( white_list , "<variable_item>" , s )
Identifies and removes items that can legitimately vary between runs.
Identifies and removes items that can legitimately vary between runs .
"""Identifies and removes items that can legitimately vary between runs."""
s