py: db.py: Rename argument to event handlers to avoid shadowing
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 2 Jan 2017 14:42:10 +0000 (16:42 +0200)
committerTomi 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>
py/tests/db.py

index 772b4fc18e37bed321c763fddeee88a8d88c7dc8..20f42360b992932ada039b60c26a369447846fe4 100755 (executable)
@@ -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)