1. Matthew Turk
  2. cedit

Commits

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")
         self._conf.read((self._path))
         self._conf.data.clean_format()
     def exitext(self):
         if self.warnflush('quit'):
             return
-        exit(0)
+        sys.exit(0)
 
     def warnflush(self, action):
         return self._dirty and self._ui.promptchoice("You have unsaved "