Browse Source

Add getpass prompt.

suites/jessie-proposed-backports
Chris Lawrence 19 years ago
parent
commit
2e94a5b464
  1. 4
      reportbug_ui_text.py

4
reportbug_ui_text.py

@ -24,6 +24,7 @@ from urlutils import launch_browser
from types import StringTypes
import dircache
import glob
import getpass
try:
import textwrap
@ -200,6 +201,9 @@ def get_string(prompt, options=None, title=None, force_prompt=False,
return our_raw_input('[%s]> ' % default, options, completer) or default
return our_raw_input('> ', options, completer)
def get_password(prompt=None):
return getpass.getpass(prompt)
def FilenameCompleter(text, i):
paths = glob.glob(text+'*')
if not paths: return None

Loading…
Cancel
Save