python: Drop use of types.FunctionType.
authorRussell Bryant <russell@ovn.org>
Tue, 15 Dec 2015 13:51:45 +0000 (08:51 -0500)
committerRussell Bryant <russell@ovn.org>
Tue, 2 Feb 2016 21:41:11 +0000 (16:41 -0500)
commit58de9fc30e45118a7a3b2018ced44adaefb6c3b9
treeac1744ecab09c0e1c68c3b6d015bedb0ca24cca8
parent1ccbf95c6eaccb371227dd58455163840d6cc2d0
python: Drop use of types.FunctionType.

This code asserted that the callback argument was of type
types.FunctionType.  It's more pythonic to just check that the argument
is callable, and not specifically that it's a function.  There are other
ways to implement a callback than types.FunctionType.

Signed-off-by: Russell Bryant <russell@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
python/ovs/unixctl/__init__.py