As you requested, I have re-implemented my InotifyTrees class and modified your InotifyTree class to inherit from a BaseTree class which now holds the common constructor and event_gen() method.
To do this I had to change the super-private __i and __mask variables to semi-private _i and _mask variables.
As you requested, I have re-implemented my
InotifyTrees
class and modified yourInotifyTree
class to inherit from aBaseTree
class which now holds the common constructor andevent_gen
() method.To do this I had to change the super-private
__i
and__mask
variables to semi-private_i
and_mask
variables.I also removed a few trailing whitespaces.