[rtems-littlevgl commit] lvgl.py: Replace deprecated file by open.
Christian Mauderer
christianm at rtems.org
Thu Apr 2 06:11:05 UTC 2020
Module: rtems-littlevgl
Branch: master
Commit: 200463037a74d2be1ab88f0e84298437065ee9cc
Changeset: http://git.rtems.org/rtems-littlevgl/commit/?id=200463037a74d2be1ab88f0e84298437065ee9cc
Author: Christian Mauderer <christian.mauderer at embedded-brains.de>
Date: Thu Apr 2 08:08:21 2020 +0200
lvgl.py: Replace deprecated file by open.
In python file() is deprecated and doesn't work with python3. Replace it
with an open() call.
---
lvgl.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lvgl.py b/lvgl.py
index b91a265..d79afb2 100644
--- a/lvgl.py
+++ b/lvgl.py
@@ -45,7 +45,7 @@ def source_list(bld):
cflags = []
for filename in mk_files:
- lexer = shlex.shlex(file(filename, 'rt').read())
+ lexer = shlex.shlex(open(filename, 'rt').read())
lexer.whitespace += '+='
lexer.whitespace_split = True
More information about the vc
mailing list