summaryrefslogtreecommitdiff
path: root/src/py/cam/cam_null.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/py/cam/cam_null.py')
-rw-r--r--src/py/cam/cam_null.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/py/cam/cam_null.py b/src/py/cam/cam_null.py
index a6da9671..45c5f467 100644
--- a/src/py/cam/cam_null.py
+++ b/src/py/cam/cam_null.py
@@ -9,8 +9,8 @@ class NullRenderer:
def __init__(self, state):
self.state = state
- self.cm = state['cm']
- self.contexts = state['contexts']
+ self.cm = state.cm
+ self.contexts = state.contexts
self.running = False
@@ -37,11 +37,11 @@ class NullRenderer:
print('Exiting...')
def readcam(self, fd):
- self.running = self.state['event_handler'](self.state)
+ self.running = self.state.event_handler()
def readkey(self, fileobj):
sys.stdin.readline()
self.running = False
def request_handler(self, ctx, req):
- self.state['request_prcessed'](ctx, req)
+ self.state.request_processed(ctx, req)