def from_str(self, checkouts_str):
    self.clear()
    for line in checkouts_str.splitlines():
      line = line.strip()
      if line and not line.startswith("#"):
        if line in "\t":
          # for older format
          # XXX Remove this at some point.
          (scope, rev) = line.split("\t")
          self.checkouts[scope] = Checkout(scope, rev, Mode.AUTO)
        else:
          init_property = shortvals_from_str(line)
          self.checkouts[init_property["scope"]] = Checkout(**init_property)
dataset/ETHPy150Open bloomreach/zinc/zinc.py/CheckoutList.from_str/swapped operands of `in`