MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / get_one

Method get_one

pipcl.py:3301–3306  ·  view source on GitHub ↗

Returns new match of , asserting that there is exactly one.

(self)

Source from the content-addressed store, hash-verified

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 ''&#x27;
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:

Callers 2

build_wheelMethod · 0.95
buildFunction · 0.95

Calls 1

get_nMethod · 0.95

Tested by 1

buildFunction · 0.76