-
- Downloads
module.py: refactor
This is a refactoring before further modifications. Should not have any semantic changes. Items: - file.readlines() is not necessary, file is line-iterable - use "cwd" named parameter in subprocess.call() instead of explicit "cd" - auto close using scope manager: "with xxx as yyy:" - os.path.exists() instead of os.access(mmod_path, os.F_OK) == False - extract paths containing ".." to variables Signed-off-by:Tomasz Grabiec <tgrabiec@cloudius-systems.com> Signed-off-by:
Pekka Enberg <penberg@cloudius-systems.com>
Please register or sign in to comment