Skip to content

Commit 602581a

Browse files
authored
Merge branch 'master' into patch-3
2 parents ab62f57 + c1bcad2 commit 602581a

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

.travis.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
1-
dist: xenial
1+
os: linux
2+
dist: focal
23
language: python
34

4-
sudo: false
5-
6-
matrix:
5+
jobs:
76
include:
87
- python: "3.7"
98
env: TOXENV=py37
10-
- python: "3.8"
11-
env: TOXENV=py38
9+
- python: "3.9"
10+
env: TOXENV=py39
1211

1312
cache:
1413
- pip
1514

1615
install:
17-
- pip install tox
18-
- pip install codecov
16+
- pip install codecov tox
1917

2018
script:
2119
- tox

patterns/behavioral/publish_subscribe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def main():
6565
>>> vani.subscribe("movie")
6666
>>> vani.unsubscribe("movie")
6767
68-
# Note that no one subscirbed to `ads`
68+
# Note that no one subscribed to `ads`
6969
# and that vani changed their mind
7070
7171
>>> fftv.publish("cartoon")

patterns/structural/front_controller.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def dispatch(self, request):
2727
elif request.type == Request.tablet_type:
2828
self.tablet_view.show_index_page()
2929
else:
30-
print("cant dispatch the request")
30+
print("Cannot dispatch the request")
3131

3232

3333
class RequestController:
@@ -69,7 +69,7 @@ def main():
6969
Displaying tablet index page
7070
7171
>>> front_controller.dispatch_request(Request('desktop'))
72-
cant dispatch the request
72+
Cannot dispatch the request
7373
7474
>>> front_controller.dispatch_request('mobile')
7575
request must be a Request object

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py38,py39,cov-report
2+
envlist = py37,py38,py39,cov-report
33
skip_missing_interpreters = true
44

55

0 commit comments

Comments
 (0)