Fix unused import / vars

This commit is contained in:
Alexandre Aubin 2021-08-27 18:58:18 +02:00
parent 5c982db4b6
commit 049523f2b6
5 changed files with 1 additions and 10 deletions

View file

@ -1,6 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from os import environ
from moulinette.core import ( from moulinette.core import (
MoulinetteError, MoulinetteError,
Moulinette18n, Moulinette18n,

View file

@ -17,7 +17,6 @@ from moulinette.cache import open_cachefile
from moulinette.core import ( from moulinette.core import (
MoulinetteError, MoulinetteError,
MoulinetteLock, MoulinetteLock,
MoulinetteAuthenticationError,
MoulinetteValidationError, MoulinetteValidationError,
) )
from moulinette.interfaces import BaseActionsMapParser, TO_RETURN_PROP from moulinette.interfaces import BaseActionsMapParser, TO_RETURN_PROP

View file

@ -1,11 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import os
import logging
import hashlib
import hmac
from moulinette.utils.text import random_ascii
from moulinette.core import MoulinetteError, MoulinetteAuthenticationError from moulinette.core import MoulinetteError, MoulinetteAuthenticationError
logger = logging.getLogger("moulinette.authenticator") logger = logging.getLogger("moulinette.authenticator")

View file

@ -516,7 +516,7 @@ class _ActionsMapPlugin(object):
def display(self, message, style="info"): def display(self, message, style="info"):
s_id = Sesson.get_infos()["id"] s_id = Session.get_infos()["id"]
try: try:
queue = self.log_queues[s_id] queue = self.log_queues[s_id]
except KeyError: except KeyError:

View file

@ -1,4 +1,3 @@
import os
import pytest import pytest
from moulinette import MoulinetteError from moulinette import MoulinetteError