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

Method check_int

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

Source from the content-addressed store, hash-verified

1232
1233 @staticmethod
1234 def check_int(s):
1235 # check if string is an integer
1236 num_str = str(s)
1237
1238 if num_str[0] in ('-', '+'):
1239 return num_str[1:].isdigit()
1240 return num_str.isdigit()
1241
1242
1243class 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