Returns new match of , asserting that there is exactly one.
(self)
| 3299 | assert len(ret) == n, f'{len(ret)=}: {ret}' |
| 3300 | return ret |
| 3301 | def get_one(self): |
| 3302 | ''' |
| 3303 | Returns new match of <glob_pattern>, asserting that there is exactly |
| 3304 | one. |
| 3305 | ''' |
| 3306 | return self.get_n(1)[0] |
| 3307 | def _file_id(self, path): |
| 3308 | mtime = os.stat(path).st_mtime |
| 3309 | with open(path, 'rb') as f: |