mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
Code Cleaning
I just fixed simple things such as spacing, redundant parenthesis, and simplified expressions
This commit is contained in:
parent
81a966eeb8
commit
018d3be4d4
|
@ -14,6 +14,7 @@ import Defs.LocalizationManager.lang_global_usage as global_localization
|
|||
|
||||
default_palette = theme.default_palette
|
||||
|
||||
|
||||
def license_handler():
|
||||
eula = pathlib_Path("eula.txt")
|
||||
|
||||
|
@ -69,7 +70,7 @@ def terms_of_service_message(): # menu where user select what they wanna use
|
|||
# print("\n\n[ {0}YOU ARE NOT AUTHORIZED TO USE THIS TOOL.YOU CAN ONLY USE IT FOR EDUCATIONAL PURPOSE.!{1} ]\n\n".format(default_palette[0], default_palette[4]))
|
||||
# exit()
|
||||
agreement = license_handler()
|
||||
if agreement == False:
|
||||
if not agreement:
|
||||
print(localization.lang_terms_of_service_message["GPL_3.0"])
|
||||
print(localization.lang_terms_of_service_message["great_power_great_responsibility"])
|
||||
print(localization.lang_terms_of_service_message["do_you_accept_license"])
|
||||
|
@ -186,7 +187,7 @@ def port_selector(): # Question where user must select port
|
|||
print(localization.lang_port_selector["port_suggestion"])
|
||||
choice = input(global_localization.input_line)
|
||||
try:
|
||||
if (int(choice) > 65535 or int(choice) < 1):
|
||||
if int(choice) > 65535 or int(choice) < 1:
|
||||
return selectPort()
|
||||
else:
|
||||
return choice
|
||||
|
|
Loading…
Reference in New Issue
Block a user