Rev 4567: Fix a fairly critical bug where TextUIFactory.get_non_echoed_password was failing. in http://bazaar.launchpad.net/~jameinel/bzr/1.18-broken-getpass
John Arbash Meinel
john at arbash-meinel.com
Fri Jul 24 17:37:09 BST 2009
At http://bazaar.launchpad.net/~jameinel/bzr/1.18-broken-getpass
------------------------------------------------------------
revno: 4567
revision-id: john at arbash-meinel.com-20090724163651-drv2gb4qo5f2oprw
parent: pqm at pqm.ubuntu.com-20090724042219-cpfjr65il0k0tdet
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 1.18-broken-getpass
timestamp: Fri 2009-07-24 11:36:51 -0500
message:
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.
-------------- next part --------------
=== modified file 'bzrlib/ui/text.py'
--- a/bzrlib/ui/text.py 2009-07-19 01:05:42 +0000
+++ b/bzrlib/ui/text.py 2009-07-24 16:36:51 +0000
@@ -18,6 +18,7 @@
"""Text UI, write output to the console.
"""
+import getpass
import os
import sys
import time
More information about the bazaar-commits
mailing list