From a3a99faec745edcdd99a32c5503f9612945c2d1f Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Thu, 31 Mar 2022 20:15:51 -0400 Subject: [PATCH] Agent: Reformat all code with latest version of Black --- monkey/infection_monkey/network/info.py | 1 - .../post_breach/actions/communicate_as_backdoor_user.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/monkey/infection_monkey/network/info.py b/monkey/infection_monkey/network/info.py index 162fb423b..e26df1989 100644 --- a/monkey/infection_monkey/network/info.py +++ b/monkey/infection_monkey/network/info.py @@ -66,7 +66,6 @@ if is_windows_os(): def get_routes(): raise NotImplementedError() - else: from fcntl import ioctl diff --git a/monkey/infection_monkey/post_breach/actions/communicate_as_backdoor_user.py b/monkey/infection_monkey/post_breach/actions/communicate_as_backdoor_user.py index ed17146f0..01843b242 100644 --- a/monkey/infection_monkey/post_breach/actions/communicate_as_backdoor_user.py +++ b/monkey/infection_monkey/post_breach/actions/communicate_as_backdoor_user.py @@ -105,4 +105,4 @@ class CommunicateAsBackdoorUser(PBA): def twos_complement(exit_status): - return hex(exit_status & (2 ** 32 - 1)) + return hex(exit_status & (2**32 - 1))