Extract patches from file contents and return as dict.
(contents: str)
| 236 | |
| 237 | |
| 238 | def extract_patches(contents: str) -> Patches: |
| 239 | """Extract patches from file contents and return as dict.""" |
| 240 | return build_patch_dict(iter_patches(contents)) |
| 241 | |
| 242 | |
| 243 | def _iter_patch_lines( |