diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-04-11 10:58:45 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-04-11 10:58:45 +0200 |
commit | 95eeffdd8cc3443add1ce2c739d0c413ac502015 (patch) | |
tree | 459586723a4ae7ce5b16abf57f28b73a39cfc3b9 /src/app.py | |
parent | README: update (diff) | |
download | linux-status-95eeffdd8cc3443add1ce2c739d0c413ac502015.tar.gz linux-status-95eeffdd8cc3443add1ce2c739d0c413ac502015.zip |
src: shorter import
Diffstat (limited to '')
-rwxr-xr-x | src/app.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -44,6 +44,7 @@ import cgi from collections import namedtuple from concurrent.futures import ThreadPoolExecutor from enum import Enum +from http import HTTPStatus import http.server import json import os @@ -66,7 +67,7 @@ def split_by(xs, sep): class Response: - DEFAULT_STATUS = http.server.HTTPStatus.OK + DEFAULT_STATUS = HTTPStatus.OK @staticmethod def body_from_json(body): |