Skip to content

Commit 5e8cbb9

Browse files
authored
Remove python 2.x support (#231)
* remove python 2.x support * python3.6 has already deprecated
1 parent 1774e4f commit 5e8cbb9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@
55
.PHONY: release dist install build-inplace
66
define BROWSER_PYSCRIPT
77
import os, webbrowser, sys
8+
FAIL = "\033[91m"
9+
ENDC = "\033[0m"
10+
811
try:
9-
from urllib import pathname2url
10-
except:
1112
from urllib.request import pathname2url
13+
except:
14+
print(FAIL + "Python2 is deprecated, please upgrade your python >= 3.7" + ENDC)
1215

1316
webbrowser.open("file://" + pathname2url(os.path.abspath(sys.argv[1])))
1417
endef

0 commit comments

Comments
 (0)