)                  except StopIteration:                      items = None                      break              n = len(tmp)              if n > 0:                  write(MARK)                  for 