From dac696019bc8824670fa2fc35221d64d9a99a6f5 Mon Sep 17 00:00:00 2001 From: ppigazzini Date: Thu, 23 May 2024 18:38:17 +0200 Subject: [PATCH] Drop not used imports --- server/fishtest/rundb.py | 2 -- server/fishtest/util.py | 2 -- server/fishtest/views.py | 3 +-- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/server/fishtest/rundb.py b/server/fishtest/rundb.py index f3fb55a0d..3dfd2c794 100644 --- a/server/fishtest/rundb.py +++ b/server/fishtest/rundb.py @@ -1,10 +1,8 @@ -import configparser import copy import math import os import random import re -import signal import sys import textwrap import threading diff --git a/server/fishtest/util.py b/server/fishtest/util.py index 111233723..f268d8a1f 100644 --- a/server/fishtest/util.py +++ b/server/fishtest/util.py @@ -2,9 +2,7 @@ import hashlib import math import re -import smtplib from datetime import datetime, timedelta, timezone -from email.mime.text import MIMEText from functools import cache import fishtest.stats.stat_util diff --git a/server/fishtest/views.py b/server/fishtest/views.py index 150d21c8e..0b580766e 100644 --- a/server/fishtest/views.py +++ b/server/fishtest/views.py @@ -10,7 +10,6 @@ import fishtest.stats.stat_util import requests -from bson.objectid import ObjectId from fishtest.schemas import short_worker_name from fishtest.util import ( email_valid, @@ -25,7 +24,7 @@ password_strength, update_residuals, ) -from pyramid.httpexceptions import HTTPFound, HTTPNotFound, exception_response +from pyramid.httpexceptions import HTTPFound, HTTPNotFound from pyramid.security import forget, remember from pyramid.view import forbidden_view_config, notfound_view_config, view_config from requests.exceptions import ConnectionError, HTTPError