MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / sanitize_str_field_value

Function sanitize_str_field_value

keepercommander/vault.py:23–26  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

21
22
23def sanitize_str_field_value(value): # type: (Any) -> str
24 if not isinstance(value, str):
25 value = str(value) if value else ''
26 return value
27
28
29def sanitize_int_field_value(value, *, default=0): # type: (Any, *Any, Optional[Any]) -> int

Callers 12

__init__Method · 0.85
new_fieldMethod · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
load_record_dataMethod · 0.85
set_custom_valueMethod · 0.85
__init__Method · 0.85
new_fieldMethod · 0.85
load_record_dataMethod · 0.85
load_record_dataMethod · 0.85
load_record_dataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected