From 38f4af329e98f505ca78c6b898e74b0f7d4e232e Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Thu, 13 Aug 2020 12:56:47 +0000 Subject: [PATCH 1/4] Restyled by autopep8 --- Defs/FeatureManager/__init__.py | 1 - __init__.py | 1 - controllers/EULA_controller.py | 9 ++++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Defs/FeatureManager/__init__.py b/Defs/FeatureManager/__init__.py index 8b13789..e69de29 100644 --- a/Defs/FeatureManager/__init__.py +++ b/Defs/FeatureManager/__init__.py @@ -1 +0,0 @@ - diff --git a/__init__.py b/__init__.py index 8b13789..e69de29 100644 --- a/__init__.py +++ b/__init__.py @@ -1 +0,0 @@ - diff --git a/controllers/EULA_controller.py b/controllers/EULA_controller.py index a9e7efb..8db3d89 100644 --- a/controllers/EULA_controller.py +++ b/controllers/EULA_controller.py @@ -43,10 +43,13 @@ class EULAController: return False def confirm_eula(self): - print(f'{self.license.read()}\n{EULAView().EULA_messages["eula_power_and_responsibility_message"]}\n') + print( + f'{self.license.read()}\n{EULAView().EULA_messages["eula_power_and_responsibility_message"]}\n') print(EULAView().EULA_messages["eula_full_disclaimer"]) - print(f'{EULAView().EULA_messages["eula_do_you_accept"]} \n\n{EULAView().EULA_messages["eula_enter_to_continue"]}\n') - answer = input(EULAView().EULA_messages["eula_input_prompt"]).lower().replace(" ", "") + print( + f'{EULAView().EULA_messages["eula_do_you_accept"]} \n\n{EULAView().EULA_messages["eula_enter_to_continue"]}\n') + answer = input( + EULAView().EULA_messages["eula_input_prompt"]).lower().replace(" ", "") if answer == "iaccepteula": eula_temp_input = open(self.eula, "rt") eula_temp_data = eula_temp_input.read().replace( From d451875378a57a3ee4bd90c93206e5f396b3eae4 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Thu, 13 Aug 2020 12:56:48 +0000 Subject: [PATCH 2/4] Restyled by isort --- Defs/ActionManager/Server/server_runner.py | 19 ++++--------------- Defs/ActionManager/main_runner.py | 14 +++++--------- Defs/ActionManager/simple_informant.py | 14 +++++--------- .../EmailManager/email_prompt.py | 11 ++++------- Defs/FeatureManager/cloudflare.py | 10 ++++------ Defs/FeatureManager/keylogger.py | 5 ++--- .../unsorted_will_be_replaced.py | 18 ++++-------------- 7 files changed, 28 insertions(+), 63 deletions(-) diff --git a/Defs/ActionManager/Server/server_runner.py b/Defs/ActionManager/Server/server_runner.py index 6225f49..7540d2d 100644 --- a/Defs/ActionManager/Server/server_runner.py +++ b/Defs/ActionManager/Server/server_runner.py @@ -10,21 +10,10 @@ import Defs.LocalizationManager.lang_action_manager.lang_server.lang_server_runn import Defs.LocalizationManager.lang_global_usage as global_localization import Defs.ThemeManager.theme as theme from Defs.ActionManager import simple_informant -from Defs.ImportManager.unsorted_will_be_replaced import BytesIO -from Defs.ImportManager.unsorted_will_be_replaced import CalledProcessError -from Defs.ImportManager.unsorted_will_be_replaced import check_output -from Defs.ImportManager.unsorted_will_be_replaced import chmod -from Defs.ImportManager.unsorted_will_be_replaced import DEVNULL -from Defs.ImportManager.unsorted_will_be_replaced import ngrok -from Defs.ImportManager.unsorted_will_be_replaced import ngrok_conf -from Defs.ImportManager.unsorted_will_be_replaced import path -from Defs.ImportManager.unsorted_will_be_replaced import regular_expression -from Defs.ImportManager.unsorted_will_be_replaced import requests -from Defs.ImportManager.unsorted_will_be_replaced import run_background_command -from Defs.ImportManager.unsorted_will_be_replaced import run_command -from Defs.ImportManager.unsorted_will_be_replaced import url_request -from Defs.ImportManager.unsorted_will_be_replaced import wait -from Defs.ImportManager.unsorted_will_be_replaced import ZipFile +from Defs.ImportManager.unsorted_will_be_replaced import ( + DEVNULL, BytesIO, CalledProcessError, ZipFile, check_output, chmod, ngrok, + ngrok_conf, path, regular_expression, requests, run_background_command, + run_command, url_request, wait) from Defs.LocalizationManager.helper import print_sorted_as_menu try: diff --git a/Defs/ActionManager/main_runner.py b/Defs/ActionManager/main_runner.py index ab04743..7d7eb88 100644 --- a/Defs/ActionManager/main_runner.py +++ b/Defs/ActionManager/main_runner.py @@ -9,15 +9,11 @@ import time import Defs.ActionManager.simple_informant as simple_informant import Defs.LocalizationManager.lang_action_manager.lang_main_runner as localization import Defs.LocalizationManager.lang_global_usage as global_localization -from Defs.ImportManager.unsorted_will_be_replaced import copyfile -from Defs.ImportManager.unsorted_will_be_replaced import mkdir -from Defs.ImportManager.unsorted_will_be_replaced import path -from Defs.ImportManager.unsorted_will_be_replaced import pathlib_Path -from Defs.ImportManager.unsorted_will_be_replaced import remove -from Defs.ImportManager.unsorted_will_be_replaced import rmtree -from Defs.ImportManager.unsorted_will_be_replaced import run_command -from Defs.ImportManager.unsorted_will_be_replaced import wait -from Defs.ImportManager.unsorted_will_be_replaced import webpage_set +from Defs.ImportManager.unsorted_will_be_replaced import (copyfile, mkdir, + path, pathlib_Path, + remove, rmtree, + run_command, wait, + webpage_set) from Defs.LocalizationManager.helper import print_sorted_as_menu module_loading_message = simple_informant.module_loading_message diff --git a/Defs/ActionManager/simple_informant.py b/Defs/ActionManager/simple_informant.py index 81c2aea..ee9e3c5 100644 --- a/Defs/ActionManager/simple_informant.py +++ b/Defs/ActionManager/simple_informant.py @@ -9,15 +9,11 @@ import Defs.FeatureManager.EmailManager.email_prompt as email_prompt import Defs.LocalizationManager.lang_action_manager.lang_simple_informant as localization import Defs.LocalizationManager.lang_global_usage as global_localization import Defs.ThemeManager.theme as theme -from Defs.ImportManager.unsorted_will_be_replaced import chmod -from Defs.ImportManager.unsorted_will_be_replaced import copyfile -from Defs.ImportManager.unsorted_will_be_replaced import getuid -from Defs.ImportManager.unsorted_will_be_replaced import pathlib_Path -from Defs.ImportManager.unsorted_will_be_replaced import platform -from Defs.ImportManager.unsorted_will_be_replaced import requests -from Defs.ImportManager.unsorted_will_be_replaced import run_command -from Defs.ImportManager.unsorted_will_be_replaced import stat -from Defs.ImportManager.unsorted_will_be_replaced import try_to_run_command +from Defs.ImportManager.unsorted_will_be_replaced import (chmod, copyfile, + getuid, pathlib_Path, + platform, requests, + run_command, stat, + try_to_run_command) default_palette = theme.default_palette diff --git a/Defs/FeatureManager/EmailManager/email_prompt.py b/Defs/FeatureManager/EmailManager/email_prompt.py index f1353b5..504cfbc 100644 --- a/Defs/FeatureManager/EmailManager/email_prompt.py +++ b/Defs/FeatureManager/EmailManager/email_prompt.py @@ -5,13 +5,10 @@ # under certain conditions; you can read LICENSE for details. # import Defs.ThemeManager.theme as theme -from Defs.ImportManager.unsorted_will_be_replaced import base64 -from Defs.ImportManager.unsorted_will_be_replaced import copyfile -from Defs.ImportManager.unsorted_will_be_replaced import getpass -from Defs.ImportManager.unsorted_will_be_replaced import path -from Defs.ImportManager.unsorted_will_be_replaced import run_command -from Defs.ImportManager.unsorted_will_be_replaced import system -from Defs.ImportManager.unsorted_will_be_replaced import wait +from Defs.ImportManager.unsorted_will_be_replaced import (base64, copyfile, + getpass, path, + run_command, system, + wait) default_palette = theme.default_palette diff --git a/Defs/FeatureManager/cloudflare.py b/Defs/FeatureManager/cloudflare.py index 7e96efc..0313a46 100644 --- a/Defs/FeatureManager/cloudflare.py +++ b/Defs/FeatureManager/cloudflare.py @@ -5,12 +5,10 @@ # under certain conditions; you can read LICENSE for details. # import Defs.ThemeManager.theme as theme -from Defs.ImportManager.unsorted_will_be_replaced import chmod -from Defs.ImportManager.unsorted_will_be_replaced import copyfile -from Defs.ImportManager.unsorted_will_be_replaced import pathlib_Path -from Defs.ImportManager.unsorted_will_be_replaced import replace -from Defs.ImportManager.unsorted_will_be_replaced import run_command -from Defs.ImportManager.unsorted_will_be_replaced import wait +from Defs.ImportManager.unsorted_will_be_replaced import (chmod, copyfile, + pathlib_Path, + replace, run_command, + wait) default_palette = theme.default_palette diff --git a/Defs/FeatureManager/keylogger.py b/Defs/FeatureManager/keylogger.py index c572c51..45617e1 100644 --- a/Defs/FeatureManager/keylogger.py +++ b/Defs/FeatureManager/keylogger.py @@ -5,9 +5,8 @@ # under certain conditions; you can read LICENSE for details. # import Defs.ThemeManager.theme as theme -from Defs.ImportManager.unsorted_will_be_replaced import path -from Defs.ImportManager.unsorted_will_be_replaced import run_command -from Defs.ImportManager.unsorted_will_be_replaced import wait +from Defs.ImportManager.unsorted_will_be_replaced import (path, run_command, + wait) default_palette = theme.default_palette diff --git a/Defs/ImportManager/unsorted_will_be_replaced.py b/Defs/ImportManager/unsorted_will_be_replaced.py index 81f712e..8870cc1 100644 --- a/Defs/ImportManager/unsorted_will_be_replaced.py +++ b/Defs/ImportManager/unsorted_will_be_replaced.py @@ -12,24 +12,14 @@ import socket import stat from distutils.dir_util import copy_tree as webpage_set from io import BytesIO -from os import chdir -from os import chmod -from os import getuid -from os import mkdir -from os import path -from os import remove -from os import replace -from os import system +from os import chdir, chmod, getuid, mkdir, path, remove, replace, system from pathlib import Path as pathlib_Path -from shutil import copyfile -from shutil import rmtree +from shutil import copyfile, rmtree +from subprocess import DEVNULL, PIPE, CalledProcessError +from subprocess import Popen as run_background_command from subprocess import call as run_command -from subprocess import CalledProcessError from subprocess import check_call as try_to_run_command from subprocess import check_output -from subprocess import DEVNULL -from subprocess import PIPE -from subprocess import Popen as run_background_command from time import sleep as wait from urllib import request as url_request from zipfile import ZipFile From 1e56aeeda64bcd18ad697d3775c72f6675fd89df Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Thu, 13 Aug 2020 12:56:50 +0000 Subject: [PATCH 3/4] Restyled by reorder-python-imports --- Defs/ActionManager/Server/server_runner.py | 19 +++++++++++++++---- Defs/ActionManager/main_runner.py | 14 +++++++++----- Defs/ActionManager/simple_informant.py | 14 +++++++++----- .../EmailManager/email_prompt.py | 11 +++++++---- Defs/FeatureManager/cloudflare.py | 10 ++++++---- Defs/FeatureManager/keylogger.py | 5 +++-- .../unsorted_will_be_replaced.py | 18 ++++++++++++++---- 7 files changed, 63 insertions(+), 28 deletions(-) diff --git a/Defs/ActionManager/Server/server_runner.py b/Defs/ActionManager/Server/server_runner.py index 7540d2d..6225f49 100644 --- a/Defs/ActionManager/Server/server_runner.py +++ b/Defs/ActionManager/Server/server_runner.py @@ -10,10 +10,21 @@ import Defs.LocalizationManager.lang_action_manager.lang_server.lang_server_runn import Defs.LocalizationManager.lang_global_usage as global_localization import Defs.ThemeManager.theme as theme from Defs.ActionManager import simple_informant -from Defs.ImportManager.unsorted_will_be_replaced import ( - DEVNULL, BytesIO, CalledProcessError, ZipFile, check_output, chmod, ngrok, - ngrok_conf, path, regular_expression, requests, run_background_command, - run_command, url_request, wait) +from Defs.ImportManager.unsorted_will_be_replaced import BytesIO +from Defs.ImportManager.unsorted_will_be_replaced import CalledProcessError +from Defs.ImportManager.unsorted_will_be_replaced import check_output +from Defs.ImportManager.unsorted_will_be_replaced import chmod +from Defs.ImportManager.unsorted_will_be_replaced import DEVNULL +from Defs.ImportManager.unsorted_will_be_replaced import ngrok +from Defs.ImportManager.unsorted_will_be_replaced import ngrok_conf +from Defs.ImportManager.unsorted_will_be_replaced import path +from Defs.ImportManager.unsorted_will_be_replaced import regular_expression +from Defs.ImportManager.unsorted_will_be_replaced import requests +from Defs.ImportManager.unsorted_will_be_replaced import run_background_command +from Defs.ImportManager.unsorted_will_be_replaced import run_command +from Defs.ImportManager.unsorted_will_be_replaced import url_request +from Defs.ImportManager.unsorted_will_be_replaced import wait +from Defs.ImportManager.unsorted_will_be_replaced import ZipFile from Defs.LocalizationManager.helper import print_sorted_as_menu try: diff --git a/Defs/ActionManager/main_runner.py b/Defs/ActionManager/main_runner.py index 7d7eb88..ab04743 100644 --- a/Defs/ActionManager/main_runner.py +++ b/Defs/ActionManager/main_runner.py @@ -9,11 +9,15 @@ import time import Defs.ActionManager.simple_informant as simple_informant import Defs.LocalizationManager.lang_action_manager.lang_main_runner as localization import Defs.LocalizationManager.lang_global_usage as global_localization -from Defs.ImportManager.unsorted_will_be_replaced import (copyfile, mkdir, - path, pathlib_Path, - remove, rmtree, - run_command, wait, - webpage_set) +from Defs.ImportManager.unsorted_will_be_replaced import copyfile +from Defs.ImportManager.unsorted_will_be_replaced import mkdir +from Defs.ImportManager.unsorted_will_be_replaced import path +from Defs.ImportManager.unsorted_will_be_replaced import pathlib_Path +from Defs.ImportManager.unsorted_will_be_replaced import remove +from Defs.ImportManager.unsorted_will_be_replaced import rmtree +from Defs.ImportManager.unsorted_will_be_replaced import run_command +from Defs.ImportManager.unsorted_will_be_replaced import wait +from Defs.ImportManager.unsorted_will_be_replaced import webpage_set from Defs.LocalizationManager.helper import print_sorted_as_menu module_loading_message = simple_informant.module_loading_message diff --git a/Defs/ActionManager/simple_informant.py b/Defs/ActionManager/simple_informant.py index ee9e3c5..81c2aea 100644 --- a/Defs/ActionManager/simple_informant.py +++ b/Defs/ActionManager/simple_informant.py @@ -9,11 +9,15 @@ import Defs.FeatureManager.EmailManager.email_prompt as email_prompt import Defs.LocalizationManager.lang_action_manager.lang_simple_informant as localization import Defs.LocalizationManager.lang_global_usage as global_localization import Defs.ThemeManager.theme as theme -from Defs.ImportManager.unsorted_will_be_replaced import (chmod, copyfile, - getuid, pathlib_Path, - platform, requests, - run_command, stat, - try_to_run_command) +from Defs.ImportManager.unsorted_will_be_replaced import chmod +from Defs.ImportManager.unsorted_will_be_replaced import copyfile +from Defs.ImportManager.unsorted_will_be_replaced import getuid +from Defs.ImportManager.unsorted_will_be_replaced import pathlib_Path +from Defs.ImportManager.unsorted_will_be_replaced import platform +from Defs.ImportManager.unsorted_will_be_replaced import requests +from Defs.ImportManager.unsorted_will_be_replaced import run_command +from Defs.ImportManager.unsorted_will_be_replaced import stat +from Defs.ImportManager.unsorted_will_be_replaced import try_to_run_command default_palette = theme.default_palette diff --git a/Defs/FeatureManager/EmailManager/email_prompt.py b/Defs/FeatureManager/EmailManager/email_prompt.py index 504cfbc..f1353b5 100644 --- a/Defs/FeatureManager/EmailManager/email_prompt.py +++ b/Defs/FeatureManager/EmailManager/email_prompt.py @@ -5,10 +5,13 @@ # under certain conditions; you can read LICENSE for details. # import Defs.ThemeManager.theme as theme -from Defs.ImportManager.unsorted_will_be_replaced import (base64, copyfile, - getpass, path, - run_command, system, - wait) +from Defs.ImportManager.unsorted_will_be_replaced import base64 +from Defs.ImportManager.unsorted_will_be_replaced import copyfile +from Defs.ImportManager.unsorted_will_be_replaced import getpass +from Defs.ImportManager.unsorted_will_be_replaced import path +from Defs.ImportManager.unsorted_will_be_replaced import run_command +from Defs.ImportManager.unsorted_will_be_replaced import system +from Defs.ImportManager.unsorted_will_be_replaced import wait default_palette = theme.default_palette diff --git a/Defs/FeatureManager/cloudflare.py b/Defs/FeatureManager/cloudflare.py index 0313a46..7e96efc 100644 --- a/Defs/FeatureManager/cloudflare.py +++ b/Defs/FeatureManager/cloudflare.py @@ -5,10 +5,12 @@ # under certain conditions; you can read LICENSE for details. # import Defs.ThemeManager.theme as theme -from Defs.ImportManager.unsorted_will_be_replaced import (chmod, copyfile, - pathlib_Path, - replace, run_command, - wait) +from Defs.ImportManager.unsorted_will_be_replaced import chmod +from Defs.ImportManager.unsorted_will_be_replaced import copyfile +from Defs.ImportManager.unsorted_will_be_replaced import pathlib_Path +from Defs.ImportManager.unsorted_will_be_replaced import replace +from Defs.ImportManager.unsorted_will_be_replaced import run_command +from Defs.ImportManager.unsorted_will_be_replaced import wait default_palette = theme.default_palette diff --git a/Defs/FeatureManager/keylogger.py b/Defs/FeatureManager/keylogger.py index 45617e1..c572c51 100644 --- a/Defs/FeatureManager/keylogger.py +++ b/Defs/FeatureManager/keylogger.py @@ -5,8 +5,9 @@ # under certain conditions; you can read LICENSE for details. # import Defs.ThemeManager.theme as theme -from Defs.ImportManager.unsorted_will_be_replaced import (path, run_command, - wait) +from Defs.ImportManager.unsorted_will_be_replaced import path +from Defs.ImportManager.unsorted_will_be_replaced import run_command +from Defs.ImportManager.unsorted_will_be_replaced import wait default_palette = theme.default_palette diff --git a/Defs/ImportManager/unsorted_will_be_replaced.py b/Defs/ImportManager/unsorted_will_be_replaced.py index 8870cc1..81f712e 100644 --- a/Defs/ImportManager/unsorted_will_be_replaced.py +++ b/Defs/ImportManager/unsorted_will_be_replaced.py @@ -12,14 +12,24 @@ import socket import stat from distutils.dir_util import copy_tree as webpage_set from io import BytesIO -from os import chdir, chmod, getuid, mkdir, path, remove, replace, system +from os import chdir +from os import chmod +from os import getuid +from os import mkdir +from os import path +from os import remove +from os import replace +from os import system from pathlib import Path as pathlib_Path -from shutil import copyfile, rmtree -from subprocess import DEVNULL, PIPE, CalledProcessError -from subprocess import Popen as run_background_command +from shutil import copyfile +from shutil import rmtree from subprocess import call as run_command +from subprocess import CalledProcessError from subprocess import check_call as try_to_run_command from subprocess import check_output +from subprocess import DEVNULL +from subprocess import PIPE +from subprocess import Popen as run_background_command from time import sleep as wait from urllib import request as url_request from zipfile import ZipFile From 5f9d4e818549ef2587a16c01c58a1a9ff543f5d6 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Thu, 13 Aug 2020 12:56:50 +0000 Subject: [PATCH 4/4] Restyled by whitespace --- Defs/FeatureManager/__init__.py | 1 + __init__.py | 1 + 2 files changed, 2 insertions(+) diff --git a/Defs/FeatureManager/__init__.py b/Defs/FeatureManager/__init__.py index e69de29..8b13789 100644 --- a/Defs/FeatureManager/__init__.py +++ b/Defs/FeatureManager/__init__.py @@ -0,0 +1 @@ + diff --git a/__init__.py b/__init__.py index e69de29..8b13789 100644 --- a/__init__.py +++ b/__init__.py @@ -0,0 +1 @@ +