mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 00:02:13 +00:00
bootstrap.py: remove all python2 support
In 0.33.0 python2 support has been removed from mpv's build system. This commit removes python2 compatibility code from bootstrap.py with the following changes: - __future__ import for print_function is not needed - urllib2 is python2 only
This commit is contained in:
parent
62fb374349
commit
d7e80dee26
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
# This script simply downloads waf to the current directory
|
# This script simply downloads waf to the current directory
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
import os, sys, stat, hashlib, subprocess
|
import os, sys, stat, hashlib, subprocess
|
||||||
|
from urllib.request import urlopen, URLError
|
||||||
|
|
||||||
WAFRELEASE = "waf-2.0.20"
|
WAFRELEASE = "waf-2.0.20"
|
||||||
WAFURLS = ["https://waf.io/" + WAFRELEASE,
|
WAFURLS = ["https://waf.io/" + WAFRELEASE,
|
||||||
@ -20,11 +20,6 @@ if "--no-download" in sys.argv[1:]:
|
|||||||
print("Did not find {} and no download was requested.".format(WAFRELEASE))
|
print("Did not find {} and no download was requested.".format(WAFRELEASE))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
try:
|
|
||||||
from urllib.request import urlopen, URLError
|
|
||||||
except:
|
|
||||||
from urllib2 import urlopen, URLError
|
|
||||||
|
|
||||||
waf = None
|
waf = None
|
||||||
|
|
||||||
for WAFURL in WAFURLS:
|
for WAFURL in WAFURLS:
|
||||||
|
Loading…
Reference in New Issue
Block a user