mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Better exit handling.
This commit is contained in:
parent
de51909d19
commit
6ab2cb6696
2 changed files with 1 additions and 2 deletions
|
@ -263,7 +263,7 @@ class MkDistrUI(Application):
|
||||||
return
|
return
|
||||||
if rv == 1:
|
if rv == 1:
|
||||||
self.main.save()
|
self.main.save()
|
||||||
raise self
|
self._quit()
|
||||||
|
|
||||||
def save(self, *args):
|
def save(self, *args):
|
||||||
self.main.save()
|
self.main.save()
|
||||||
|
|
|
@ -308,7 +308,6 @@ def main():
|
||||||
routine(dir, arg, list)
|
routine(dir, arg, list)
|
||||||
|
|
||||||
print "All done!"
|
print "All done!"
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue