From 5134533f0fb88a8d615e80590ede841a3db28e53 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Thu, 31 Mar 2022 20:15:27 -0400 Subject: [PATCH] Island: Reformat all code with latest version of Black --- monkey/monkey_island/cc/services/utils/network_utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/services/utils/network_utils.py b/monkey/monkey_island/cc/services/utils/network_utils.py index a37cd3250..0a64af5ec 100644 --- a/monkey/monkey_island/cc/services/utils/network_utils.py +++ b/monkey/monkey_island/cc/services/utils/network_utils.py @@ -14,14 +14,13 @@ if sys.platform == "win32": local_hostname = socket.gethostname() return socket.gethostbyname_ex(local_hostname)[2] - else: import fcntl def local_ips(): result = [] try: - is_64bits = sys.maxsize > 2 ** 32 + is_64bits = sys.maxsize > 2**32 struct_size = 40 if is_64bits else 32 s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) max_possible = 8 # initial value