Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion patterns/behavioral/publish_subscribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def main():
>>> vani.subscribe("movie")
>>> vani.unsubscribe("movie")

# Note that no one subscirbed to `ads`
# Note that no one subscribed to `ads`
# and that vani changed their mind

>>> fftv.publish("cartoon")
Expand Down
4 changes: 2 additions & 2 deletions patterns/structural/front_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def dispatch(self, request):
elif request.type == Request.tablet_type:
self.tablet_view.show_index_page()
else:
print("cant dispatch the request")
print("Cannot dispatch the request")


class RequestController:
Expand Down Expand Up @@ -69,7 +69,7 @@ def main():
Displaying tablet index page
>>> front_controller.dispatch_request(Request('desktop'))
cant dispatch the request
Cannot dispatch the request
>>> front_controller.dispatch_request('mobile')
request must be a Request object
Expand Down