mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-23 00:01:31 +00:00
Make DirectoryMonitor.ignore setter more pythonic
This commit is contained in:
parent
e064c34d8f
commit
cb7e8c5663
@ -52,8 +52,7 @@ class DirectoryMonitor:
|
|||||||
|
|
||||||
@ignore.setter
|
@ignore.setter
|
||||||
def ignore(self, value):
|
def ignore(self, value):
|
||||||
if value >= 0: self.ignore = value
|
self.ignore = value if value >= 0 else 0
|
||||||
else: self.ignore = 0
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def pauser(self):
|
def pauser(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user