MCPcopy Create free account
hub / github.com/apenwarr/sshuttle / _remove_negative_kv

Function _remove_negative_kv

options.py:46–49  ·  view source on GitHub ↗
(k, v)

Source from the content-addressed store, hash-verified

44
45
46def _remove_negative_kv(k, v):
47 if k.startswith('no-') or k.startswith('no_'):
48 return k[3:], not v
49 return k,v
50
51def _remove_negative_k(k):
52 return _remove_negative_kv(k, None)[0]

Callers 2

_remove_negative_kFunction · 0.85
_gen_usageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected