MCPcopy
hub / github.com/cool-RR/PySnooper / replace

Method replace

tests/mini_toolbox/pathlib.py:1523–1533  ·  view source on GitHub ↗

Rename this path to the given path, clobbering the existing destination if it exists.

(self, target)

Source from the content-addressed store, hash-verified

1521 self._accessor.rename(self, target)
1522
1523 def replace(self, target):
1524 """
1525 Rename this path to the given path, clobbering the existing
1526 destination if it exists.
1527 """
1528 if sys.version_info < (3, 3):
1529 raise NotImplementedError("replace() is only available "
1530 "with Python 3.3 and later")
1531 if self._closed:
1532 self._raise_closed()
1533 self._accessor.replace(self, target)
1534
1535 def symlink_to(self, target, target_is_directory=False):
1536 """

Callers 6

timedelta_parseFunction · 0.80
get_shortish_reprFunction · 0.80
verify_normalizeFunction · 0.80
parse_partsMethod · 0.80
as_posixMethod · 0.80

Calls 1

_raise_closedMethod · 0.95

Tested by

no test coverage detected