def ValidateTransfers(self, problems):
    if not ((self.transfers == None) or
            (isinstance(self.transfers, int) and
             self.transfers in range(0, 3))):
      problems.InvalidValue("transfers", self.transfers)
dataset/ETHPy150Open google/transitfeed/transitfeed/fareattribute.py/FareAttribute.ValidateTransfers/original