Skip to content

Commit e0d0472

Browse files
committed
Merge pull request faif#79 from lord63-forks/patch-2
Remove unused import and pep8 check
2 parents d845b9e + c773eda commit e0d0472

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

abstract_factory.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import random
99

10+
1011
class PetShop:
1112

1213
"""A pet shop"""
@@ -64,6 +65,7 @@ def get_pet(self):
6465
def get_food(self):
6566
return "cat food"
6667

68+
6769
# Create the proper family
6870
def get_factory():
6971
"""Let's be dynamic!"""

adapter.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,35 @@
33

44
"""http://ginstrom.com/scribbles/2008/11/06/generic-adapter-class-in-python/"""
55

6-
import os
76

87
class Dog(object):
98
def __init__(self):
109
self.name = "Dog"
10+
1111
def bark(self):
1212
return "woof!"
1313

14+
1415
class Cat(object):
1516
def __init__(self):
1617
self.name = "Cat"
18+
1719
def meow(self):
1820
return "meow!"
1921

22+
2023
class Human(object):
2124
def __init__(self):
2225
self.name = "Human"
26+
2327
def speak(self):
2428
return "'hello'"
2529

2630

2731
class Car(object):
2832
def __init__(self):
2933
self.name = "Car"
34+
3035
def make_noise(self, octane_level):
3136
return "vroom{0}".format("!" * octane_level)
3237

0 commit comments

Comments
 (0)