MCPcopy
hub / github.com/psf/black / _newer

Function _newer

src/blib2to3/pgen2/driver.py:266–272  ·  view source on GitHub ↗

Inquire whether file a was written since file b.

(a: str, b: str)

Source from the content-addressed store, hash-verified

264
265
266def _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
275def load_packaged_grammar(

Callers 1

load_grammarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected