mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-11-19 08:40:20 +00:00
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:
1 parent
1656df776a
commit
943d0d732d
1 file changed
+1
-2
+1
-2
@@ -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":
|
||||
|
||||
Reference in new issue
Block a user