diff --git a/README.md b/README.md index 87b467c5..2cca2ba0 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,10 @@ rerun `append_output.sh` (eg. ./append_output.sh borg.py) to keep the output comments at the bottom up to date. Current Patterns: +HEAD +### hi +======= +gj | Pattern | Description | |:-------:| ----------- | diff --git a/abstract_factory.py b/abstract_factory.py index a32c067e..6b39453c 100644 --- a/abstract_factory.py +++ b/abstract_factory.py @@ -72,7 +72,7 @@ def get_factory(): # Show pets with various factories if __name__ == "__main__": - for i in range(3): + for i in range(2): shop = PetShop(get_factory()) shop.show_pet() print("=" * 20) @@ -82,10 +82,6 @@ def get_factory(): # It says woof # We also have dog food # ==================== -# We have a lovely Dog -# It says woof -# We also have dog food -# ==================== # We have a lovely Cat # It says meow # We also have cat food diff --git a/chain.py b/chain.py index 6698f8f9..6372457c 100644 --- a/chain.py +++ b/chain.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- """http://www.testingperspective.com/wiki/doku.php/collaboration/chetan/designpatternsinpython/chain-of-responsibilitypattern""" - +### class Handler: def __init__(self,successor): self._successor = successor;