Nicolas Dumazet <nicdumz.commits@gmail.com> [Wed, 08 Apr 2009 14:15:18 +0900] rev 8069
inotify: Do not raise TypeError when client.query returns None
When something went wrong in client.query, it returns None.
If inotify.debug=True, we will attempt in this case a zip(A, None, B), which
would raise a TypeError.
Nicolas Dumazet <nicdumz.commits@gmail.com> [Wed, 08 Apr 2009 13:29:51 +0900] rev 8068
inotify: Simplifying init code
simplifying
retry = False
try:
try:
doA()
retry = True
except X:
doB()
retry = True
except:
doC()
pass
if retry:
doD()
-- into --
try:
try:
doA()
except X:
doB()
except:
doC()
pass
else:
doD()
Nicolas Dumazet <nicdumz.commits@gmail.com> [Wed, 08 Apr 2009 13:27:28 +0900] rev 8067
inotify: files is always a list: 'files or []' is redundant
files comes from match.files() : it always returns a list.