From 0f4dbd62f4c7019e54614fef4dedab3767636738 Mon Sep 17 00:00:00 2001 From: Digital Studium Date: Sun, 23 Jul 2023 11:44:35 +0300 Subject: [PATCH] Update common --- common | 2 +- crater.py | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/common b/common index 0414cc9..7b3e665 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 0414cc9bdbd14526e57e42fec9a6294f0a97b7ed +Subproject commit 7b3e66514a9379805ae2ccd3bdffdae80bfdca68 diff --git a/crater.py b/crater.py index e28a4c8..99adb88 100644 --- a/crater.py +++ b/crater.py @@ -1,8 +1,6 @@ import csv import os import shutil -from functools import partial -from http.server import HTTPServer, SimpleHTTPRequestHandler from pathlib import Path from watchdog.observers import Observer @@ -48,14 +46,6 @@ class Develop(FileSystemEventHandler): crater() -# Функция для запуска веб-сервера -def start_httpd(directory: Path, port: int = 8000): - print(f"Listen on port {port}, serving from {directory}...") - handler = partial(SimpleHTTPRequestHandler, directory=directory) - httpd = HTTPServer(('localhost', port), handler) - httpd.serve_forever() - - # Функция для запуска разработки def develop(prod): global running