Commit ad107a37 authored by Vincent Michel's avatar Vincent Michel

Merge branch 'shutter_duplicated_code' into 'master'

common/shutter.py: removed duplicated code

See merge request !989
parents 06985c6e 53705c84
Pipeline #6928 passed with stages
in 19 minutes and 45 seconds
......@@ -223,20 +223,6 @@ class Shutter(object):
def __exit__(self, exc_type, exc_value, traceback):
self.close()
@property
def is_open(self):
return self.state == self.OPEN
@property
def is_closed(self):
return self.state == self.CLOSED
def __enter__(self):
self.open()
def __exit__(self, exc_type, exc_value, traceback):
self.close()
@property
def external_control(self):
return self._external_ctrl
......
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