unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
blob 2b915823aa2b62c2775e15bfc50d5a12edd58851 584 bytes (raw)
name: test/lisp/emacs-lisp/package-resources/package-test-server.py 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
 
import sys
from http.server import HTTPServer, SimpleHTTPRequestHandler



HandlerClass = SimpleHTTPRequestHandler
HandlerClass.protocol_version = "HTTP/1.0"
server_address = ('127.0.0.1', int(sys.argv[1]) if sys.argv[1:] else 0)
httpd = HTTPServer(server_address, HandlerClass)

ip, port = httpd.socket.getsockname()[0:2]
print ("Server started, http://%s:%s/" % (ip, port))
# Flush in case we're in full buffering mode (instead of line
# buffering), this might happen if python is a cygwin program and we
# run it from a native w32 program.
sys.stdout.flush()
httpd.serve_forever()

debug log:

solving 2b915823aa2 ...
found 2b915823aa2 in https://yhetil.org/emacs-bugs/CABCREdpF1c5AK5mZqvdEhvVHK4XVCDqjcRJ8VHxj_Qrhw-u+AQ@mail.gmail.com/
found 128b4249ec3 in https://git.savannah.gnu.org/cgit/emacs.git
preparing index
index prepared:
100644 128b4249ec366854db028e186262d89aabbf3dda	test/lisp/emacs-lisp/package-resources/package-test-server.py

applying [1/1] https://yhetil.org/emacs-bugs/CABCREdpF1c5AK5mZqvdEhvVHK4XVCDqjcRJ8VHxj_Qrhw-u+AQ@mail.gmail.com/
diff --git a/test/lisp/emacs-lisp/package-resources/package-test-server.py b/test/lisp/emacs-lisp/package-resources/package-test-server.py
index 128b4249ec3..2b915823aa2 100644

Checking patch test/lisp/emacs-lisp/package-resources/package-test-server.py...
Applied patch test/lisp/emacs-lisp/package-resources/package-test-server.py cleanly.

index at:
100644 2b915823aa2b62c2775e15bfc50d5a12edd58851	test/lisp/emacs-lisp/package-resources/package-test-server.py

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).