summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2017-01-02 16:42:10 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-01-03 10:46:42 +0200
commitd66d3d3f2f82636002a13a7fd4a33b241c41e6bd (patch)
tree84b721adc6fe82d3deffddc82ef1642826dd1624 /py
parentf1a098203be8c44a52ed5d2a72982a3f634d4df6 (diff)
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 <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'py')
-rwxr-xr-xpy/tests/db.py4
1 files changed, 2 insertions, 2 deletions
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)