From be05bc1716600fd2dcf407117574242b10403b77 Mon Sep 17 00:00:00 2001 From: Abhishek Nigam Date: Fri, 17 Jun 2022 18:55:48 +0530 Subject: [PATCH] Add Python 3 snippet for a simple HTTP server In Python 3, the SimpleHTTPServer has been merged with http.server module. Reference: https://stackoverflow.com/questions/7943751/what-is-the-python-3-equivalent-of-python-m-simplehttpserver --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 558c073..88b95b5 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,8 @@ There are two reasons for using this: You don't need to install any browser plugins or manually add code snippets to your pages for the reload functionality to work, see "How it works" section below for more information. If you don't want/need the live reload, you should probably use something even simpler, like the following Python-based one-liner: - python -m SimpleHTTPServer + python -m SimpleHTTPServer # for Python 2 + python -m http.server # for Python 3, you may need to use python3 instead of python depending upon executable name Installation