1. Matthew Turk
  2. cedit


Paul Lambert  committed d85c7ec

changed exit() so sys.exit() as suggested in review 59

  • Participants
  • Parent commits f1fa63f
  • Branches default

Comments (0)

Files changed (1)

File config.py

View file
  • Ignore whitespace
         paths = verifypaths(paths)
         if not paths:
             ui.warn(_('No configuration selected (nothing written).\n'))
-            exit(0)
+            sys.exit(0)
         if opts['add']:
             setoption(ui, paths, opts['add'])
         if opts['delete']:
             index = self._ui.promptchoice(msg, [_('&yes'), _('&no')], _('y'))
             if index == 1:
                 self._ui.status(_("No configuration to edit"))
-                exit(0)
+                sys.exit(0)
             open(default, "ab")
     def exitext(self):
         if self.warnflush('quit'):
-        exit(0)
+        sys.exit(0)
     def warnflush(self, action):
         return self._dirty and self._ui.promptchoice("You have unsaved "