MCPcopy Index your code
hub / github.com/python/cpython / strip_addresses

Method strip_addresses

Lib/test/test_dis.py:977–978  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

975 "Common utilities for DisTests and TestDisTraceback"
976
977 def strip_addresses(self, text):
978 return re.sub(r'\b0x[0-9A-Fa-f]+\b', '0x...', text)
979
980 def assert_exception_table_increasing(self, lines):
981 prev_start, prev_end = -1, -1

Callers 2

checkMethod · 0.80

Calls 1

subMethod · 0.45

Tested by

no test coverage detected