##// END OF EJS Templates
fix default value in interactiveshell.ask_yes_no...
MinRK -
Show More
@@ -2616,7 +2616,7 b' class InteractiveShell(SingletonConfigurable, Magic):'
2616 """Write a string to the default error output"""
2616 """Write a string to the default error output"""
2617 io.stderr.write(data)
2617 io.stderr.write(data)
2618
2618
2619 def ask_yes_no(self,prompt,default=True):
2619 def ask_yes_no(self, prompt, default=None):
2620 if self.quiet:
2620 if self.quiet:
2621 return True
2621 return True
2622 return ask_yes_no(prompt,default)
2622 return ask_yes_no(prompt,default)
@@ -1058,7 +1058,8 b' Currently the magic system has the following functions:\\n"""'
1058 ans = True
1058 ans = True
1059 else:
1059 else:
1060 ans = self.shell.ask_yes_no(
1060 ans = self.shell.ask_yes_no(
1061 "Once deleted, variables cannot be recovered. Proceed (y/[n])? ")
1061 "Once deleted, variables cannot be recovered. Proceed (y/[n])? ",
1062 default='n')
1062 if not ans:
1063 if not ans:
1063 print 'Nothing done.'
1064 print 'Nothing done.'
1064 return
1065 return
General Comments 0
You need to be logged in to leave comments. Login now