mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-12-23 04:21:55 +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
|
||||
def ignore(self, value):
|
||||
if value >= 0: self.ignore = value
|
||||
else: self.ignore = 0
|
||||
self.ignore = value if value >= 0 else 0
|
||||
|
||||
@property
|
||||
def pauser(self):
|
||||
|
Loading…
Reference in New Issue
Block a user