mercurial/ui.py
branchstable
changeset 47079 5b3513177f2b
parent 46965 b03527bdac01
child 47233 bcafcd779d2e
--- a/mercurial/ui.py	Mon May 10 00:54:08 2021 +0000
+++ b/mercurial/ui.py	Wed May 12 12:41:52 2021 -0400
@@ -11,7 +11,6 @@
 import contextlib
 import datetime
 import errno
-import getpass
 import inspect
 import os
 import re
@@ -1779,7 +1778,7 @@
                         raise EOFError
                     return l.rstrip(b'\n')
                 else:
-                    return encoding.strtolocal(getpass.getpass(''))
+                    return util.get_password()
         except EOFError:
             raise error.ResponseExpected()