Commit 65ec4196 authored by Ralf's avatar Ralf
Browse files

avoid unnecessary default values

parent 06c9d9d8
......@@ -326,7 +326,7 @@ class StateMachine():
self.api().set_state(False)
class StateLocking(AbstractUnlockedState):
def __init__(self, sm, close_attempts = 0):
def __init__(self, sm, close_attempts):
self.close_attempts = close_attempts
# construct a nervlist
nervlist = [(CLOSE_REPEAT_TIMEOUT, lambda: self.actor().act(Actor.CMD_LOCK)) for t in range(CLOSE_REPEAT_NUMBER)]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment