From d66d3d3f2f82636002a13a7fd4a33b241c41e6bd Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 2 Jan 2017 16:42:10 +0200 Subject: py: db.py: Rename argument to event handlers to avoid shadowing 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 --- py/tests/db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'py/tests') diff --git a/py/tests/db.py b/py/tests/db.py index 772b4fc..20f4236 100755 --- a/py/tests/db.py +++ b/py/tests/db.py @@ -51,11 +51,11 @@ crtc.set_mode(conn, fliphandler.fb1, mode) fliphandler.handle_page_flip(0, 0) -def readdrm(conn, mask): +def readdrm(fileobj, mask): #print("EVENT"); card.call_page_flip_handlers() -def readkey(conn, mask): +def readkey(fileobj, mask): #print("KEY EVENT"); sys.stdin.readline() exit(0) -- cgit v1.2.3