Skip to content

Commit 8f4a9a2

Browse files
committed
Add comments of documentations' origin
and change name from test.py to test_json_schema.py
1 parent 7580664 commit 8f4a9a2

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎asynchronous_mixins.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
import threading
33
import socketserver
44

5+
#From https://docs.python.org/3/library/socketserver.html
6+
57
class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler):
68

79
def handle(self):

‎open_localhost_server.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import requests
77

8+
#From https://docs.python.org/3/library/socketserver.html
89

910
class ThreadedTCPServer(socketserver.ThreadingMixIn, socketserver.TCPServer):
1011
pass
@@ -26,7 +27,7 @@ class ThreadedTCPServer(socketserver.ThreadingMixIn, socketserver.TCPServer):
2627
server_thread.start()
2728
print(f"Server {ip}:{port} loop running in thread {server_thread.name}")
2829

29-
response = requests.get("http://127.0.0.1:8000/cinema_alien_debutant.json")
30+
response = requests.get("http://localhost:8000/empty.json")
3031
print(response)
3132

3233
server.shutdown()
File renamed without changes.

0 commit comments

Comments
 (0)