MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / _mkdtemp

Function _mkdtemp

asyncpg/cluster.py:63–70  ·  view source on GitHub ↗
(suffix=None, prefix=None, dir=None)

Source from the content-addressed store, hash-verified

61
62
63def _mkdtemp(suffix=None, prefix=None, dir=None):
64 if _system == 'Windows' and os.environ.get("GITHUB_ACTIONS"):
65 # Due to mitigations introduced in python/cpython#118486
66 # when Python runs in a session created via an SSH connection
67 # tempfile.mkdtemp creates directories that are not accessible.
68 return _world_readable_mkdtemp(suffix, prefix, dir)
69 else:
70 return tempfile.mkdtemp(suffix, prefix, dir)
71
72
73class ClusterError(Exception):

Callers 1

__init__Method · 0.85

Calls 2

_world_readable_mkdtempFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…