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

login
register
mail settings
Submitter phabricator
Date March 2, 2019, 2:05 a.m.
Message ID <dd8cf85e27352bb7bd61d097207f8d87@localhost.localdomain>
Download mbox | patch
Permalink /patch/38990/
State Not Applicable
Headers show

Comments

phabricator - March 2, 2019, 2:05 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG8e364664a999: py3: pass a str to getpass.getpass() (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6041?vs=14284&id=14288

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()