Sfoglia il codice sorgente

Remove static serving of files

master
David Larlet 5 anni fa
parent
commit
aa746ed61f
Non sono state trovate chiavi note per questa firma nel database
2 ha cambiato i file con 0 aggiunte e 18 eliminazioni
  1. 0
    9
      cache.py
  2. 0
    9
      site.py

+ 0
- 9
cache.py Vedi File

@@ -4,9 +4,7 @@ import codecs
import fnmatch
import hashlib
import os
import socketserver
from dataclasses import dataclass
from http.server import SimpleHTTPRequestHandler
from pathlib import Path
from time import perf_counter

@@ -143,13 +141,6 @@ def new(url):
return md_line


@cli
def serve():
httpd = socketserver.TCPServer(("larlet.test", 8001), SimpleHTTPRequestHandler)
print("Serving at http://larlet.test:8001/david/cache/")
httpd.serve_forever()


@wrap
def perf_wrapper():
start = perf_counter()

+ 0
- 9
site.py Vedi File

@@ -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()

Loading…
Annulla
Salva