Patchwork D6041: py3: pass a str to getpass.getpass()

login
register
mail settings
Submitter phabricator
Date March 2, 2019, 12:13 a.m.
Message ID <differential-rev-PHID-DREV-5mml2lf4yulcvetk7inn-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/38986/
State Superseded
Headers show

Comments

phabricator - March 2, 2019, 12:13 a.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Otherwise I see `password: b''` on the prompt.
  
  1. skip-blame because just prefix

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D6041

AFFECTED FILES
  mercurial/ui.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -1553,7 +1553,7 @@ 
                         raise EOFError
                     return l.rstrip('\n')
                 else:
-                    return getpass.getpass('')
+                    return getpass.getpass(r'')
         except EOFError:
             raise error.ResponseExpected()