diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2017-01-02 16:42:10 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-01-03 10:46:42 +0200 |
commit | d66d3d3f2f82636002a13a7fd4a33b241c41e6bd (patch) | |
tree | 84b721adc6fe82d3deffddc82ef1642826dd1624 /py/tests | |
parent | f1a098203be8c44a52ed5d2a72982a3f634d4df6 (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/tests')
-rwxr-xr-x | py/tests/db.py | 4 |
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) |