seb-m / pyinotify

Monitoring filesystems events with inotify on Linux.
http://github.com/seb-m/pyinotify/wiki
MIT License
2.29k stars 379 forks source link

Typo pyinotify/python2/examples/daemon.py line 51 #156

Closed mithilhari closed 6 years ago

mithilhari commented 6 years ago

try: notifier.loop(daemonize=True, callback=on_loop_func, pid_file='/tmp/pyinotify.pid', stdout='/tmp/pyinotify.log') except pyinotify.NotifierError, err: print >> sys.stderr, err

Should be 'except pyinotify.Notifier as err'

mithilhari commented 6 years ago

Resolved. Forgot I was using Python3.