Skip to content

Commit 2a4428a

Browse files
authored
Merge pull request #337 from alanwuha/master
fixed blank lines and whitespace warnings raised by tox
2 parents 2076cbc + 6a29d64 commit 2a4428a

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

patterns/creational/pool.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def main():
7979
print(sample_queue.get())
8080
"""
8181

82+
8283
if __name__ == '__main__':
8384
import doctest
8485
doctest.testmod()

patterns/structural/3-tier.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ def main():
9191
That product 'arepas' does not exist in the records
9292
"""
9393

94+
9495
if __name__ == "__main__":
9596
import doctest
9697
doctest.testmod()

patterns/structural/decorator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,15 @@ def main():
5959
"""
6060
>>> simple_hello = TextTag("hello, world!")
6161
>>> special_hello = ItalicWrapper(BoldWrapper(simple_hello))
62-
62+
6363
>>> print("before:", simple_hello.render())
6464
before: hello, world!
6565
6666
>>> print("after:", special_hello.render())
6767
after: <i><b>hello, world!</b></i>
6868
"""
6969

70+
7071
if __name__ == '__main__':
7172
import doctest
7273
doctest.testmod()

patterns/structural/front_controller.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,21 @@ def __init__(self, request):
6161
def main():
6262
"""
6363
>>> front_controller = RequestController()
64-
64+
6565
>>> front_controller.dispatch_request(Request('mobile'))
6666
Displaying mobile index page
6767
6868
>>> front_controller.dispatch_request(Request('tablet'))
6969
Displaying tablet index page
70-
70+
7171
>>> front_controller.dispatch_request(Request('desktop'))
7272
cant dispatch the request
73-
73+
7474
>>> front_controller.dispatch_request('mobile')
7575
request must be a Request object
7676
"""
7777

78+
7879
if __name__ == "__main__":
7980
import doctest
8081
doctest.testmod()

patterns/structural/mvc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ def main():
142142
That product "arepas" does not exist in the records
143143
"""
144144

145+
145146
if __name__ == '__main__':
146147
import doctest
147148
doctest.testmod()

0 commit comments

Comments
 (0)