Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0e51ba6

Browse files
committed
Two minor pep8 changes
1 parent 579f389 commit 0e51ba6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

abstract_factory.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ def __init__(self, animal_factory=None):
1414

1515
self.pet_factory = animal_factory
1616

17-
1817
def show_pet(self):
1918
"""Creates and shows a pet using the
2019
abstract factory"""
@@ -73,4 +72,4 @@ def get_factory():
7372
for i in range(3):
7473
shop.pet_factory = get_factory()
7574
shop.show_pet()
76-
print("=" * 20)
75+
print("=" * 20)

chain.py

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ class Handler:
55
def successor(self, successor):
66
self.successor = successor
77

8+
89
class ConcreteHandler1(Handler):
910
def handle(self, request):
1011
if 0 < request <= 10:

0 commit comments

Comments
 (0)