Make DirectoryMonitor.ignore setter more pythonic

This commit is contained in:
Kristóf Tóth 2018-03-07 11:36:21 +01:00
parent e064c34d8f
commit cb7e8c5663

View File

@ -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):