MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / is_locked

Function is_locked

browser_utils/debug_utils.py:190–194  ·  view source on GitHub ↗
(lock: Optional[Union[Lock, SupportsLockQuery]])

Source from the content-addressed store, hash-verified

188
189 # Helper to safely check lock state
190 def is_locked(lock: Optional[Union[Lock, SupportsLockQuery]]) -> bool:
191 try:
192 return lock.locked() if lock else False
193 except AttributeError:
194 return False
195
196 # Helper to sanitize proxy settings
197 def _sanitize_proxy(settings: Optional[Dict[str, Any]]) -> Optional[Dict[str, Any]]:

Callers 1

capture_system_contextFunction · 0.85

Calls 1

lockedMethod · 0.80

Tested by

no test coverage detected