From 4e9a749c7dde20d9a378d98fe7966f5c1a97a792 Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Thu, 25 Jun 2020 11:01:20 +0300 Subject: [PATCH] Couple of PEP8 issues related to password creation files fixed --- monkey/monkey_island/cc/environment/__init__.py | 3 +-- monkey/monkey_island/cc/resources/registration.py | 1 - monkey/monkey_island/cc/resources/root.py | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/monkey/monkey_island/cc/environment/__init__.py b/monkey/monkey_island/cc/environment/__init__.py index 5c25526b0..896608891 100644 --- a/monkey/monkey_island/cc/environment/__init__.py +++ b/monkey/monkey_island/cc/environment/__init__.py @@ -3,11 +3,10 @@ import logging import os from abc import ABCMeta, abstractmethod from datetime import timedelta -import json __author__ = 'itay.mizeretz' -from common.utils.exceptions import InvalidRegistrationCredentialsError, RegistrationNotNeededError, \ +from common.utils.exceptions import InvalidRegistrationCredentialsError, \ CredentialsNotRequiredError, AlreadyRegisteredError from monkey_island.cc.environment.environment_config import EnvironmentConfig from monkey_island.cc.environment.user_creds import UserCreds diff --git a/monkey/monkey_island/cc/resources/registration.py b/monkey/monkey_island/cc/resources/registration.py index 46d50d2d0..712286959 100644 --- a/monkey/monkey_island/cc/resources/registration.py +++ b/monkey/monkey_island/cc/resources/registration.py @@ -17,4 +17,3 @@ class Registration(flask_restful.Resource): return make_response({"error": ""}, 200) except (InvalidRegistrationCredentialsError, RegistrationNotNeededError) as e: return make_response({"error": str(e)}, 400) - diff --git a/monkey/monkey_island/cc/resources/root.py b/monkey/monkey_island/cc/resources/root.py index 18521a377..4e5e17b09 100644 --- a/monkey/monkey_island/cc/resources/root.py +++ b/monkey/monkey_island/cc/resources/root.py @@ -40,5 +40,3 @@ class Root(flask_restful.Resource): ip_addresses=local_ip_addresses(), mongo=str(mongo.db), completed_steps=InfectionLifecycle.get_completed_steps()) - -