Remove the hexadecimal id from a Python object representation.
(text)
| 240 | |
| 241 | _re_stripid = re.compile(r' at 0x[0-9a-f]{6,16}(>+)$', re.IGNORECASE) |
| 242 | def stripid(text): |
| 243 | """Remove the hexadecimal id from a Python object representation.""" |
| 244 | # The behaviour of %p is implementation-dependent in terms of case. |
| 245 | return _re_stripid.sub(r'\1', text) |
| 246 | |
| 247 | def _is_bound_method(fn): |
| 248 | """ |
no test coverage detected