mercurial/ui.py
branchstable
changeset 28039 89003c49315c
parent 27696 e70c97cc9243
child 28218 41dcd7545266
--- a/mercurial/ui.py	Wed Feb 10 22:53:17 2016 +0900
+++ b/mercurial/ui.py	Sat Feb 06 20:43:20 2016 +0900
@@ -798,7 +798,7 @@
         If ui is not interactive, the default is returned.
         """
         if not self.interactive():
-            self.write(msg, ' ', default, "\n")
+            self.write(msg, ' ', default or '', "\n")
             return default
         try:
             r = self._readline(self.label(msg, 'ui.prompt'))