MCPcopy Create free account
hub / github.com/catboost/catboost / __init__

Method __init__

library/python/filelock/__init__.py:106–112  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

104class FileLock(AbstractFileLock):
105
106 def __init__(self, path):
107 super(FileLock, self).__init__(path)
108
109 if sys.platform.startswith('win'):
110 self._lock = _WinFileLock(path)
111 else:
112 self._lock = _NixFileLock(path)
113
114 def acquire(self, blocking=True):
115 logger.debug('Acquiring %s (blocking=%s): %s', type(self).__name__, blocking, self.path)

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 2

_WinFileLockClass · 0.85
_NixFileLockClass · 0.85

Tested by

no test coverage detected