From e6b7be52f7c7e6f6065ad22fd56a3ff06954e3de Mon Sep 17 00:00:00 2001 From: asolino Date: Fri, 24 Apr 2015 15:32:07 -0300 Subject: [PATCH] Fixes on_windows() method when running under OSX on_windows() checks platform.system().lower() == 'win' However, under OSX the returned string is 'Darwin', matching 'win' ;) According to https://docs.python.org/2/library/platform.html, for Windows systems it should return 'Windows'. I just changed the comparison against 'Win' w/o calling lower(). Hopefully it works well on all Windows. It does work well on OSX :P --- patator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patator.py b/patator.py index 1317b77..5e79d82 100755 --- a/patator.py +++ b/patator.py @@ -1078,7 +1078,7 @@ class TimeoutError(Exception): pass def on_windows(): - return 'win' in system().lower() + return 'Win' in system() def ignore_ctrlc(): if on_windows():