Closed
Description
- Editor name and version: Visual Studio Code 1.9
- Platform: Linux
- Color scheme:
- MagicPython version:
- A sreenshot: 1.0.3
- 5-10 lines of surrounding code:
async def check_environment(*envVars):
""" environment check module """
mapEnv = {}
for env in envVars:
try:
mapEnv[env] = await os.environ[env]
except IndexError:
pass
return mapEnv
Hi,
with Python3.5 there is a new syntax defintion for Async/Await:
https://www.python.org/dev/peps/pep-0492/
Would you mind to update MagicPython? I get a sytanx error for the example code. It's a great tool! 👍
Gino
Metadata
Metadata
Assignees
Labels
No labels