search for: simplehttprequesthandler

Displaying 3 results from an estimated 3 matches for "simplehttprequesthandler".

2018 Sep 26
1
Re: [PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...+ > +def server(): > + server_address = ("", imageio_port) > + httpd = HTTPServer(server_address, RequestHandler) > + httpd.serve_forever() The random port can be chosen directly by the OS, using the special port 0: >>> from http.server import HTTPServer, SimpleHTTPRequestHandler >>> server_address = ("", 0) >>> httpd = HTTPServer(server_address, SimpleHTTPRequestHandler) >>> print(httpd.server_address) ('0.0.0.0', 44725) -- Pino Toscano
2016 May 04
9
[PATCH 0/8] python: PEP 8 fixes
Hi, this series cleans up the Python sources, either static or generated, including also tests, to make them PEP 8 compliant; see https://www.python.org/dev/peps/pep-0008/ and tools like pep8. Almost all the issues reported by pep8 are fixed, reducing the issues from 3818 to 7. The changes should have no effect on the actual code, while it will help Python users with consistency with other
2018 Sep 20
7
[PATCH v2 0/3] v2v: -o rhv-upload: Add a test.
v1 was here: https://www.redhat.com/archives/libguestfs/2018-September/msg00121.html v2: - Rewrote patch 2 from scratch so it incorporates Nir's suggestions. - Add fake module to EXTRA_DIST. - Retested. Unfortunately I am no longer able to test the ordinary conversion path because ovirtsdk4 is incompatible with Fedora 29 / Python 3.7: