Show More
@@ -2616,7 +2616,7 b' class InteractiveShell(SingletonConfigurable, Magic):' | |||
|
2616 | 2616 | """Write a string to the default error output""" |
|
2617 | 2617 | io.stderr.write(data) |
|
2618 | 2618 | |
|
2619 |
def ask_yes_no(self,prompt,default= |
|
|
2619 | def ask_yes_no(self, prompt, default=None): | |
|
2620 | 2620 | if self.quiet: |
|
2621 | 2621 | return True |
|
2622 | 2622 | return ask_yes_no(prompt,default) |
@@ -1058,7 +1058,8 b' Currently the magic system has the following functions:\\n"""' | |||
|
1058 | 1058 | ans = True |
|
1059 | 1059 | else: |
|
1060 | 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 | 1063 | if not ans: |
|
1063 | 1064 | print 'Nothing done.' |
|
1064 | 1065 | return |
General Comments 0
You need to be logged in to leave comments.
Login now