equal
deleted
inserted
replaced
71 def jsonescapeu8fast(self, u8chars: bytes, paranoid: bool) -> bytes: |
71 def jsonescapeu8fast(self, u8chars: bytes, paranoid: bool) -> bytes: |
72 """Convert a UTF-8 byte string to JSON-escaped form (fast path) |
72 """Convert a UTF-8 byte string to JSON-escaped form (fast path) |
73 |
73 |
74 Raises ValueError if non-ASCII characters have to be escaped. |
74 Raises ValueError if non-ASCII characters have to be escaped. |
75 """ |
75 """ |
|
76 |
|
77 |
|
78 class MPatch(Protocol): |
|
79 """A protocol class for the various mpatch module implementations.""" |
|
80 |
|
81 def patches(self, a: bytes, bins: List[bytes]) -> bytes: |
|
82 ... |
|
83 |
|
84 def patchedsize(self, orig: int, delta: bytes) -> int: |
|
85 ... |