~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2007-05-23 08:54:14 UTC
  • mfrom: (2461.1.2 110204)
  • mto: This revision was merged to the branch mainline in revision 2489.
  • Revision ID: john@arbash-meinel.com-20070523085414-8o53d2txzpn4ni9y
(Vincent Ladeuil) Fix bug #110204 allowing proper password prompt encoding

Show diffs side-by-side

added added

removed removed

Lines of Context:
721
721
    def get_non_echoed_password(self, prompt):
722
722
        """Get password from stdin without trying to handle the echo mode"""
723
723
        if prompt:
724
 
            self.stdout.write(prompt)
 
724
            self.stdout.write(prompt.encode(self.stdout.encoding, 'replace'))
725
725
        password = self.stdin.readline()
726
726
        if not password:
727
727
            raise EOFError