From fa8975706e63d8f2b0bf3c1ac0208e72e534c678 Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Mon, 12 Nov 2018 16:23:01 +0200 Subject: [PATCH] Cosmetic changes --- monkey/infection_monkey/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/monkey/infection_monkey/utils.py b/monkey/infection_monkey/utils.py index d138f85ed..635f2360d 100644 --- a/monkey/infection_monkey/utils.py +++ b/monkey/infection_monkey/utils.py @@ -32,5 +32,6 @@ def is_windows_os(): def utf_to_ascii(string): + # Converts utf string to ascii. Safe to use even if string is already ascii. udata = string.decode("utf-8") - return udata.encode("ascii", "ignore") \ No newline at end of file + return udata.encode("ascii", "ignore")