updated self to cls to match convention
tempted to just use this. in all cases
This commit is contained in:
parent
792db08259
commit
c9a5f7ea7e
1 changed files with 2 additions and 2 deletions
|
@ -280,12 +280,12 @@ class Display:
|
||||||
return input(prompt_string)
|
return input(prompt_string)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def do_var_prompt(self, varname, private=True, prompt=None, encrypt=None, confirm=False, salt_size=None, salt=None, default=None):
|
def do_var_prompt(cls, varname, private=True, prompt=None, encrypt=None, confirm=False, salt_size=None, salt=None, default=None):
|
||||||
|
|
||||||
result = None
|
result = None
|
||||||
if sys.__stdin__.isatty():
|
if sys.__stdin__.isatty():
|
||||||
|
|
||||||
do_prompt = self.prompt
|
do_prompt = cls.prompt
|
||||||
|
|
||||||
if prompt and default is not None:
|
if prompt and default is not None:
|
||||||
msg = "%s [%s]: " % (prompt, default)
|
msg = "%s [%s]: " % (prompt, default)
|
||||||
|
|
Loading…
Reference in a new issue