| 440 | # %b will insert a series of bytes, either from a type that supports |
| 441 | # the Py_buffer protocol, or something that has a __bytes__ method |
| 442 | class FakeBytes(object): |
| 443 | def __bytes__(self): |
| 444 | return b'123' |
| 445 | fb = FakeBytes() |
| 446 | testcommon(b"%b", b"abc", b"abc") |
| 447 | testcommon(b"%b", bytearray(b"def"), b"def") |
no outgoing calls
searching dependent graphs…