|
|
@@ -4,12 +4,10 @@ import codecs |
|
|
|
import fnmatch |
|
|
|
import locale |
|
|
|
import os |
|
|
|
import socketserver |
|
|
|
from collections import namedtuple |
|
|
|
from dataclasses import dataclass |
|
|
|
from datetime import date, datetime |
|
|
|
from html import escape |
|
|
|
from http.server import SimpleHTTPRequestHandler |
|
|
|
from operator import attrgetter |
|
|
|
from pathlib import Path |
|
|
|
from time import perf_counter |
|
|
@@ -249,13 +247,6 @@ def feed(): |
|
|
|
open(DAVID / "log" / "index.xml", "w").write(content) |
|
|
|
|
|
|
|
|
|
|
|
@cli |
|
|
|
def serve(): |
|
|
|
httpd = socketserver.TCPServer(("larlet.test", 8001), SimpleHTTPRequestHandler) |
|
|
|
print("Serving at http://larlet.test:8001/david/") |
|
|
|
httpd.serve_forever() |
|
|
|
|
|
|
|
|
|
|
|
@wrap |
|
|
|
def perf_wrapper(): |
|
|
|
start = perf_counter() |