File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ def server():
3636 print >> sys .stderr , "making a server on %s:%s" % address
3737 sock .bind (address )
3838 sock .listen (1 )
39-
39+
4040 try :
4141 while True :
4242 print >> sys .stderr , 'waiting for a connection'
@@ -60,18 +60,18 @@ def server():
6060 response = response_ok ()
6161 # content, type = resolve_uri(uri) # change this line
6262
63- ## uncomment this try/except block once you have fixed
64- ## response_ok and added response_not_found
65- # try:
66- # response = response_ok(content, type)
67- # except NameError:
68- # response = response_not_found()
63+ ## uncomment this try/except block once you have fixed
64+ ## response_ok and added response_not_found
65+ # try:
66+ # response = response_ok(content, type)
67+ # except NameError:
68+ # response = response_not_found()
6969
7070 print >> sys .stderr , 'sending response'
7171 conn .sendall (response )
7272 finally :
7373 conn .close ()
74-
74+
7575 except KeyboardInterrupt :
7676 sock .close ()
7777 return
You can’t perform that action at this time.
0 commit comments