diff --git a/resources/session01/echo_client.py b/resources/session01/echo_client.py index 3dad8ab7..6b2f0472 100644 --- a/resources/session01/echo_client.py +++ b/resources/session01/echo_client.py @@ -10,7 +10,7 @@ def client(msg, log_buffer=sys.stderr): print('connecting to {0} port {1}'.format(*server_address), file=log_buffer) # TODO: connect your socket to the server here. - # you can use this as a place to accumulate the entire message echoed back + # you can use this variable to accumulate the entire message received back # from the server received_message = '' @@ -34,8 +34,8 @@ def client(msg, log_buffer=sys.stderr): # the server you will want to close your client socket. print('closing socket', file=log_buffer) - # TODO: when all is said and done, you should return the reply you got - # from the server as the value of this function. + # TODO: when all is said and done, you should return the entire reply + # you received from the server as the return value of this function. if __name__ == '__main__': diff --git a/resources/session02/homework/tests.py b/resources/session02/homework/tests.py index aed245e4..45007311 100644 --- a/resources/session02/homework/tests.py +++ b/resources/session02/homework/tests.py @@ -324,7 +324,7 @@ def test_post_request(self): def test_webroot_directory_resources(self): """verify that directory uris are properly served""" message_tmpl = CRLF.join(['GET {0} HTTP/1.1', 'Host: example.com', '']) - root = "webroot" + root = "webroot/" for directory, directories, files in os.walk(root): directory_uri = "/{0}".format(directory[len(root):]) message = message_tmpl.format(directory_uri) diff --git a/resources/session02/homework/webroot/make_time.py b/resources/session02/homework/webroot/make_time.py index d3064dd2..b69acf38 100644 --- a/resources/session02/homework/webroot/make_time.py +++ b/resources/session02/homework/webroot/make_time.py @@ -17,9 +17,6 @@
%s