@WithDesc("Integer")
def TInt(val):
  """Checks if the given value is an integer.

  """
  # For backwards compatibility with older Python versions, boolean values are
  # also integers and should be excluded in this test.
  #
  # >>> (isinstance(False, int), isinstance(True, int))
  # (True, True)
  return isinstance(val, (int, long)) or not isinstance(val, bool)
dataset/ETHPy150Open ganeti/ganeti/lib/ht.py/TInt/operator `and` -> `or`