forked from platformio/platformio-core
Missing parentheses and depreciated syntax (#2700)
Fixes ``` File "get-platformio.py", line 93 print r['out'] ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(r['out'])? ``` and ``` File "get-platformio.py", line 146 except Exception, e: ^ SyntaxError: invalid syntax ```
This commit is contained in:
@ -90,7 +90,7 @@ def exec_python_cmd(args):
|
|||||||
def install_pip():
|
def install_pip():
|
||||||
r = exec_python_cmd(["-m", "pip", "--version"])
|
r = exec_python_cmd(["-m", "pip", "--version"])
|
||||||
if r['returncode'] == 0:
|
if r['returncode'] == 0:
|
||||||
print r['out']
|
print(r['out'])
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
from urllib2 import urlopen
|
from urllib2 import urlopen
|
||||||
@ -143,7 +143,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
s[1]()
|
s[1]()
|
||||||
print("[SUCCESS]")
|
print("[SUCCESS]")
|
||||||
except Exception, e:
|
except Exception as e:
|
||||||
is_error = True
|
is_error = True
|
||||||
print(str(e))
|
print(str(e))
|
||||||
print("[FAILURE]")
|
print("[FAILURE]")
|
||||||
|
Reference in New Issue
Block a user