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

Function _intify

options.py:29–36  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

27
28
29def _intify(v):
30 try:
31 vv = int(v or '')
32 if str(vv) == v:
33 return vv
34 except ValueError:
35 pass
36 return v
37
38
39def _atoi(v):

Callers 2

_gen_usageMethod · 0.85
parseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected