# See the License for the specific language governing permissions and
# limitations under the License.
-import types
-
import six
import ovs.util
assert isinstance(usage, strtypes)
assert isinstance(min_args, int)
assert isinstance(max_args, int)
- assert isinstance(callback, types.FunctionType)
+ assert callable(callback)
if name not in commands:
commands[name] = _UnixctlCommand(usage, min_args, max_args, callback,