ran code reformat

This commit is contained in:
tylerlaberge
2016-07-31 18:51:32 -04:00
parent 245b7bf2ba
commit 11f63418df
13 changed files with 49 additions and 33 deletions
+3 -1
View File
@@ -12,6 +12,7 @@ class ChainLink(object, metaclass=ABCMeta):
"""
Abstract ChainLink object as part of the Chain of Responsibility pattern.
"""
def __init__(self):
"""
Initialize a new ChainLink instance.
@@ -52,6 +53,7 @@ class Chain(object, metaclass=ABCMeta):
"""
Abstract Chain class as part of the Chain of Responsibility pattern.
"""
def __init__(self, chainlink):
"""
Initialize a new Chain instance.
@@ -76,4 +78,4 @@ class Chain(object, metaclass=ABCMeta):
"""
The method to call when the chain could not handle a request.
"""
pass
pass
+4
View File
@@ -12,12 +12,14 @@ class InvalidInvokerCommandException(Exception):
"""
Exception for when an invalid command is given to an Invoker to execute.
"""
pass
class Receiver(object, metaclass=ABCMeta):
"""
Abstract receiver class as part of the Command pattern.
"""
def action(self, name, *args, **kwargs):
"""
Delegates which method to be called for a desired action.
@@ -37,6 +39,7 @@ class Command(object, metaclass=ABCMeta):
"""
Abstract Command class as part of the Command pattern.
"""
def __init__(self, receiver):
"""
Initialize a new command instance.
@@ -65,6 +68,7 @@ class Invoker(object, metaclass=ABCMeta):
"""
Abstract Invoker class as part of the Command pattern.
"""
def __init__(self, valid_commands):
"""
Initialize a new Invoker instance.