Skip to content

Commit

Permalink
Remove python 2.x support (rmax#231)
Browse files Browse the repository at this point in the history
* remove python 2.x support

* python3.6 has already deprecated
  • Loading branch information
LuckyPigeon committed Apr 5, 2022
1 parent d423083 commit d379b2b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
.PHONY: release dist install build-inplace
define BROWSER_PYSCRIPT
import os, webbrowser, sys
FAIL = "\033[91m"
ENDC = "\033[0m"

try:
from urllib import pathname2url
except:
from urllib.request import pathname2url
except:
print(FAIL + "Python2 is deprecated, please upgrade your python >= 3.7" + ENDC)

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

0 comments on commit d379b2b

Please sign in to comment.