summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f1a0982)
raw | patch | inline | side by side (parent: f1a0982)
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | |
Mon, 2 Jan 2017 14:42:10 +0000 (16:42 +0200) | ||
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | |
Tue, 3 Jan 2017 08:46:42 +0000 (10:46 +0200) |
The first argument to the key event handlers bears the same name as the
global variable that identifies the connector. Rename it to fileobj
which, in addition to being more descriptive, avoids shadowing the
global variable.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
global variable that identifies the connector. Rename it to fileobj
which, in addition to being more descriptive, avoids shadowing the
global variable.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
py/tests/db.py | patch | blob | history |
diff --git a/py/tests/db.py b/py/tests/db.py
index 772b4fc18e37bed321c763fddeee88a8d88c7dc8..20f42360b992932ada039b60c26a369447846fe4 100755 (executable)
--- a/py/tests/db.py
+++ b/py/tests/db.py
fliphandler.handle_page_flip(0, 0)
fliphandler.handle_page_flip(0, 0)
-def readdrm(conn, mask):
+def readdrm(fileobj, mask):
#print("EVENT");
card.call_page_flip_handlers()
#print("EVENT");
card.call_page_flip_handlers()
-def readkey(conn, mask):
+def readkey(fileobj, mask):
#print("KEY EVENT");
sys.stdin.readline()
exit(0)
#print("KEY EVENT");
sys.stdin.readline()
exit(0)