mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
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():
|
||||
r = exec_python_cmd(["-m", "pip", "--version"])
|
||||
if r['returncode'] == 0:
|
||||
print r['out']
|
||||
print(r['out'])
|
||||
return
|
||||
try:
|
||||
from urllib2 import urlopen
|
||||
@ -143,7 +143,7 @@ def main():
|
||||
try:
|
||||
s[1]()
|
||||
print("[SUCCESS]")
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
is_error = True
|
||||
print(str(e))
|
||||
print("[FAILURE]")
|
||||
|
Reference in New Issue
Block a user