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

Method check_int

keepercommander/loginv3.py:1225–1231  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

1223
1224 @staticmethod
1225 def check_int(s):
1226 # check if string is an integer
1227 num_str = str(s)
1228
1229 if num_str[0] in ('-', '+'):
1230 return num_str[1:].isdigit()
1231 return num_str.isdigit()
1232
1233
1234class PassphrasePrompt(AutoSuggest, Completer, Lexer, Validator):

Callers 2

executeMethod · 0.80
get_mc_by_name_or_idFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected