"""Abstract base classes."""
import sys
from abc import ABCMeta, abstractmethod


class ACommand(metaclass=ABCMeta):

    """Abstract base class for tangled commands."""

    def __init__(self, parser, args):
        self.parser = parser
        self.args = args

    @classmethod
    @abstractmethod
    def configure(cls, parser):
        raise NotImplementedError()

    @abstractmethod
    def run(self):
        raise NotImplementedError()

    def print_error(self, *args, file=sys.stderr, **kwargs):
        print(*args, file=file, **kwargs)

    def exit(self, message=None, status=1):
        """Exit with error code by default.

        If ``message`` is passed, it will be printed to stderr.

        """
        if message:
            if status == 0:
                print(message)
            else:
                self.print_error(message)
        sys.exit(status)

@@ -546,335 +546,4 @@
 gs)%0A
-%0A    def exit(self, message=None, status=1):%0A        %22%22%22Exit with error code by default.%0A%0A        If %60%60message%60%60 is passed, it will be printed to stderr.%0A%0A        %22%22%22%0A        if message:%0A            if status == 0:%0A                print(message)%0A            else:%0A                self.print_error(message)%0A        sys.exit(status)%0A

Remove ACommand.exit()