[3/3] docs: dev-manual-common-tasks: update python webserver example to python3

Submitted by Quentin Schulz on Oct. 18, 2020, 5:57 p.m. | Patch ID: 177579


Message ID 20201018175712.23800-3-foss@0leil.net
State New
Headers show

Commit Message

Quentin Schulz Oct. 18, 2020, 5:57 p.m.
SimpleHTTPServer is python2 only, the module in python3 is http.server.

Let's use this one since everything in Yocto Project is using python3

Signed-off-by: Quentin Schulz <foss@0leil.net>

 documentation/dev-manual/dev-manual-common-tasks.rst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Links: You receive all messages sent to this group.
View/Reply Online (#467): https://lists.yoctoproject.org/g/docs/message/467
Mute This Topic: https://lists.yoctoproject.org/mt/77641252/1003190
Group Owner: docs+owner@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/docs/unsub [mhalstead@linuxfoundation.org]

Patch hide | download patch | download mbox

diff --git a/documentation/dev-manual/dev-manual-common-tasks.rst b/documentation/dev-manual/dev-manual-common-tasks.rst
index 75ef5c98c..79595d58a 100644
--- a/documentation/dev-manual/dev-manual-common-tasks.rst
+++ b/documentation/dev-manual/dev-manual-common-tasks.rst
@@ -7164,11 +7164,11 @@  Host or Server Machine Setup
 Although other protocols are possible, a server using HTTP typically
 serves packages. If you want to use HTTP, then set up and configure a
-web server such as Apache 2, lighttpd, or SimpleHTTPServer on the
+web server such as Apache 2, lighttpd, or Python web server on the
 machine serving the packages.
 To keep things simple, this section describes how to set up a
-SimpleHTTPServer web server to share package feeds from the developer's
+Python web server to share package feeds from the developer's
 machine. Although this server might not be the best for a production
 environment, the setup is simple and straight forward. Should you want
 to use a different server more suited for production (e.g. Apache 2,
@@ -7183,7 +7183,7 @@  setting of "package_rpm":
    $ cd ~/poky/build/tmp/deploy/rpm
-   $ python -m SimpleHTTPServer
+   $ python3 -m http.server
 .. _runtime-package-management-target: