From fcd43b9fa0e54ddf42a3d42637135b406c9b1623 Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Thu, 10 Oct 2019 16:41:47 +0300 Subject: [PATCH] Fixed double parentheses in print method invocations --- monkey/infection_monkey/main.py | 8 ++++---- monkey/monkey_island/scripts/island_password_hasher.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/monkey/infection_monkey/main.py b/monkey/infection_monkey/main.py index dc130b027..88b7f9fd9 100644 --- a/monkey/infection_monkey/main.py +++ b/monkey/infection_monkey/main.py @@ -59,17 +59,17 @@ def main(): config_file = opts.config if os.path.isfile(config_file): # using print because config can also change log locations - print(("Loading config from %s." % config_file)) + print("Loading config from %s." % config_file) try: with open(config_file) as config_fo: json_dict = json.load(config_fo) WormConfiguration.from_kv(json_dict) except ValueError as e: - print(("Error loading config: %s, using default" % (e,))) + print("Error loading config: %s, using default" % (e,)) else: - print(("Config file wasn't supplied and default path: %s wasn't found, using internal default" % (config_file,))) + print("Config file wasn't supplied and default path: %s wasn't found, using internal default" % (config_file,)) - print(("Loaded Configuration: %r" % WormConfiguration.hide_sensitive_info(WormConfiguration.as_dict()))) + print("Loaded Configuration: %r" % WormConfiguration.hide_sensitive_info(WormConfiguration.as_dict())) # Make sure we're not in a machine that has the kill file kill_path = os.path.expandvars( diff --git a/monkey/monkey_island/scripts/island_password_hasher.py b/monkey/monkey_island/scripts/island_password_hasher.py index 75b77c0cf..159e0d098 100644 --- a/monkey/monkey_island/scripts/island_password_hasher.py +++ b/monkey/monkey_island/scripts/island_password_hasher.py @@ -16,7 +16,7 @@ def main(): h = SHA3_512.new() h.update(args.string_to_sha) - print((h.hexdigest())) + print(h.hexdigest()) if __name__ == '__main__':