Commits

Yuya Nishihara  committed a963256

thread: correct function signature of ui.getpass to match exactly

  • Participants
  • Parent commits 0a4b44d
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/thread.py

     if len(inspect.getargspec(uimod.ui.promptchoice)[0]) > 3:
         promptchoice = _promptchoice  # hg<2.7
 
-    def getpass(self, prompt=_('password: '), default=None):
-        return self.sig.getpass(prompt, default)
+    def getpass(self, prompt=None, default=None):
+        return self.sig.getpass(prompt or _('password: '), default)
 
     def progress(self, topic, pos, item='', unit='', total=None):
         return self.sig.progress(topic, pos, item, unit, total)