Disable precondition that autoAdd == recursive.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2015-10-27 20:36:04 +00:00 committed by Brian Warner
parent a6842946ca
commit 9dafa2e759

View File

@ -221,7 +221,7 @@ class INotify(PollMixin):
precondition(self._filter is None, "only one watch is supported") precondition(self._filter is None, "only one watch is supported")
precondition(isinstance(autoAdd, bool), autoAdd=autoAdd) precondition(isinstance(autoAdd, bool), autoAdd=autoAdd)
precondition(isinstance(recursive, bool), recursive=recursive) precondition(isinstance(recursive, bool), recursive=recursive)
precondition(autoAdd == recursive, "need autoAdd and recursive to be the same", autoAdd=autoAdd, recursive=recursive) #precondition(autoAdd == recursive, "need autoAdd and recursive to be the same", autoAdd=autoAdd, recursive=recursive)
self._path = path self._path = path
path_u = path.path path_u = path.path