mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-12-27 23:45:15 +00:00
http_server import (manual)
This commit is contained in:
parent
a8f13e4b79
commit
2ca38cb2c1
@ -242,7 +242,7 @@ class Manual(Command):
|
|||||||
|
|
||||||
def serve_manual(self, root):
|
def serve_manual(self, root):
|
||||||
os.chdir(root)
|
os.chdir(root)
|
||||||
from polyglot.http_server import HTTPServer, SimpleHTTPRequestHandler
|
from http.server import HTTPServer, SimpleHTTPRequestHandler
|
||||||
HandlerClass = SimpleHTTPRequestHandler
|
HandlerClass = SimpleHTTPRequestHandler
|
||||||
ServerClass = HTTPServer
|
ServerClass = HTTPServer
|
||||||
Protocol = 'HTTP/1.0'
|
Protocol = 'HTTP/1.0'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user