Search notes:

Python: SimpleHTTPServer

It appears that SimpleHTTPServer of Python 2 merged with http.server of Python 3.
Thus, the following code won't run in Python 3:
import SimpleHTTPServer
import SocketServer

Handler = SimpleHTTPServer.SimpleHTTPRequestHandler

httpd = SocketServer.TCPServer(("", 8888), Handler) # Listen at port 8888

httpd.serve_forever()
Github repository about-python, path: /standard-library/SimpleHTTPServer/script.py

Index