From 9fd854dfe498ad1a8a50b7bfcc812e03e7b32689 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 30 Aug 2019 21:52:39 +0100 Subject: [PATCH] Remove unused imports --- actioner/scheduler/__init__.py | 2 -- actioner/web/__init__.py | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/actioner/scheduler/__init__.py b/actioner/scheduler/__init__.py index cf34026..9770961 100644 --- a/actioner/scheduler/__init__.py +++ b/actioner/scheduler/__init__.py @@ -1,5 +1,3 @@ -import asyncio - from apscheduler.executors.pool import ProcessPoolExecutor from apscheduler.schedulers.blocking import BlockingScheduler from apscheduler.triggers.interval import IntervalTrigger diff --git a/actioner/web/__init__.py b/actioner/web/__init__.py index db68d02..7d63fd7 100644 --- a/actioner/web/__init__.py +++ b/actioner/web/__init__.py @@ -4,8 +4,7 @@ import uvicorn from starlette.applications import Starlette from starlette.authentication import SimpleUser, requires # or a custom user model from starlette.middleware.authentication import AuthenticationMiddleware -from starlette.responses import PlainTextResponse -from starlette.routing import Route, Router +from starlette.routing import Route from starlette_auth_toolkit.base.backends import BaseBasicAuth from actioner.settings import BASIC_AUTH @@ -15,7 +14,6 @@ from .healthcheck import healthcheck class BasicAuth(BaseBasicAuth): async def verify(self, username: str, password: str): - print(username, password) if [username, password] != BASIC_AUTH: return None return SimpleUser(username)