MCPcopy Index your code
hub / github.com/python/cpython / _open_updater

Function _open_updater

Lib/pathlib/_os.py:190–198  ·  view source on GitHub ↗
(obj, mode)

Source from the content-addressed store, hash-verified

188
189
190def _open_updater(obj, mode):
191 cls = type(obj)
192 try:
193 open_updater = cls.__open_updater__
194 except AttributeError:
195 cls_name = cls.__name__
196 raise TypeError(f"{cls_name} can't be opened for updating") from None
197 else:
198 return open_updater(obj, mode)
199
200
201def vfsopen(obj, mode='r', buffering=-1, encoding=None, errors=None,

Callers 1

vfsopenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…