From 2e744cf96d406ee7268d870b681e52a346197440 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 5 May 2014 14:19:06 +0200 Subject: [PATCH] Use sys.platform.startswith --- qutebrowser/utils/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/utils/misc.py b/qutebrowser/utils/misc.py index 6cdd70b8d..caecb4599 100644 --- a/qutebrowser/utils/misc.py +++ b/qutebrowser/utils/misc.py @@ -82,7 +82,7 @@ def safe_shlex_split(s): def shell_escape(s): """Escape a string so it's safe to pass to a shell.""" - if sys.platform == 'win32': + if sys.platform.startswith('win'): # Oh dear flying sphagetti monster please kill me now... if not s: # Is this an empty argument or a literal ""? It seems to depend on