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

Function _dont_follow_symlinks

Lib/tempfile.py:269–274  ·  view source on GitHub ↗
(func, path, *args)

Source from the content-addressed store, hash-verified

267 "No usable temporary file name found")
268
269def _dont_follow_symlinks(func, path, *args):
270 # Pass follow_symlinks=False, unless not supported on this platform.
271 if func in _os.supports_follow_symlinks:
272 func(path, *args, follow_symlinks=False)
273 elif not _os.path.islink(path):
274 func(path, *args)
275
276def _resetperms(path):
277 try:

Callers 1

_resetpermsFunction · 0.85

Calls 2

islinkMethod · 0.80
funcFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…