Inquire whether file a was written since file b.
(a: str, b: str)
| 264 | |
| 265 | |
| 266 | def _newer(a: str, b: str) -> bool: |
| 267 | """Inquire whether file a was written since file b.""" |
| 268 | if not os.path.exists(a): |
| 269 | return False |
| 270 | if not os.path.exists(b): |
| 271 | return True |
| 272 | return os.path.getmtime(a) >= os.path.getmtime(b) |
| 273 | |
| 274 | |
| 275 | def load_packaged_grammar( |