<reponame>enriqueescobar-askida/Kinito.Python<filename>Section01_SOLID/InterfaceSegregationPrinciple/OldFashionedPrinter.py
from Section01_SOLID.InterfaceSegregationPrinciple.Machine import Machine


class OldFashionedPrinter(Machine):
    def print(self, document):
        # ok - print stuff
        pass

    def fax(self, document):
        pass  # do-nothing

    def scan(self, document):
        """Not supported!"""
        raise NotImplementedError('Printer cannot scan!')

from Section01_SOLID.InterfaceSegregationPrinciple.Machine import Machine


class OldFashionedPrinter(Machine):
    def print(self, document):
        # ok - print stuff
        pass

    def fax(self, document):
        pass  # do-nothing

    def scan(self, document):
        """Not supported!"""
        raise NotImplementedError('Printer cannot scan!')
# ok - print stuff # do-nothing Not supported!