Fix Cygwin disabling

This commit is contained in:
Ivan Kravets
2015-09-10 20:31:26 +03:00
parent dcb6d8286b
commit 57b877f445
2 changed files with 4 additions and 4 deletions

View File

@ -3,6 +3,7 @@
from os import listdir
from os.path import join
from platform import system
from sys import exit as sys_exit
from traceback import format_exc
@ -70,6 +71,9 @@ def process_result(ctx, result, force, caller): # pylint: disable=W0613
def main():
try:
if "cygwin" in system().lower():
raise exception.CygwinEnvDetected()
# https://urllib3.readthedocs.org
# /en/latest/security.html#insecureplatformwarning
try:

View File

@ -115,10 +115,6 @@ def get_systype():
data = uname()
type_ = data[0].lower()
arch = data[4].lower() if data[4] else ""
if "cygwin" in type_:
raise exception.CygwinEnvDetected()
return "%s_%s" % (type_, arch) if arch else type_