mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-10-05 06:11:13 +01: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
-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