~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/ui/text.py

  • Committer: John Arbash Meinel
  • Date: 2009-07-24 16:36:51 UTC
  • mto: This revision was merged to the branch mainline in revision 4567.
  • Revision ID: john@arbash-meinel.com-20090724163651-drv2gb4qo5f2oprw
Fix a fairly critical bug where TextUIFactory.get_non_echoed_password was failing.
Basically, we forgot to import 'getpass', and the code under question is only
run when sys.stdout is a real terminal.
Not sure how to test, so just fixing it for now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
"""Text UI, write output to the console.
19
19
"""
20
20
 
 
21
import getpass
21
22
import os
22
23
import sys
23
24
import time