Introduction of an exception saying that we do not support Python 2 anymore.

This patch is the begining of https://github.com/StevenBlack/hosts/issues/729
This commit is contained in:
funilrys
2018-09-05 23:51:27 -04:00
committed by Steven Black
parent 1656df776a
commit 943d0d732d
+1 -2
View File
@@ -33,8 +33,7 @@ if PY3:
from urllib.request import urlopen
raw_input = input
else: # Python 2
from urllib2 import urlopen
raw_input = raw_input # noqa
raise Exception('We do not support Python 2 anymore.')
# Syntactic sugar for "sudo" command in UNIX / Linux
if platform.system() == "OpenBSD":