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:
Peter
2019-06-26 06:50:06 +10:00
committed by Ivan Kravets
parent 2c3d8ce695
commit 6daf387c90

View File

@ -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]")