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

Skip to content

Commit fa2bc83

Browse files
committed
minor edit
1 parent 85bda75 commit fa2bc83

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

3-tier.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ class Data(object):
1212
}
1313

1414
def __get__(self, obj, klas):
15-
print ("(Fetching from Data Store)")
15+
print("(Fetching from Data Store)")
1616
return {'products': self.products}
1717

1818

1919
class BusinessLogic(object):
20-
2120
""" Business logic holding data store instances """
2221

2322
data = Data()

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Current Patterns:
2525
| [decorator](decorator.py) | wrap functionality with other functionality in order to affect outputs |
2626
| [facade](facade.py) | use one class as an API to a number of others |
2727
| [factory_method](factory_method.py) | delegate a specialized function/method to create instances |
28-
| [front controller](front_controller.py) | single handler requests coming to the application |
28+
| [front_controller](front_controller.py) | single handler requests coming to the application |
2929
| [flyweight](flyweight.py) | transparently reuse existing instances of objects with similar/identical state |
3030
| [graph_search](graph_search.py) | (graphing algorithms, not design patterns) |
3131
| [lazy_evaluation](lazy_evaluation.py) | lazily-evaluated property pattern in Python |

adapter.py

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def make_noise(self, octane_level):
3737

3838

3939
class Adapter(object):
40-
4140
"""
4241
Adapts an object by replacing methods.
4342
Usage:

front_controller.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- coding: utf-8 -*-
33

44
"""
5-
@author: Gordeev Andrei <[email protected]>
5+
@author: Gordeev Andrey <[email protected]>
66
The controller provides a centralized entry point that controls and manages
77
request handling.
88
"""

0 commit comments

Comments
 (0)