Revision dd076c21

b/lib/ht.py
259 259
  return isinstance(val, list)
260 260

  
261 261

  
262
@WithDesc("Tuple")
263
def TTuple(val):
264
  """Checks if the given value is a tuple.
265

  
266
  """
267
  return isinstance(val, tuple)
268

  
269

  
262 270
@WithDesc("Dictionary")
263 271
def TDict(val):
264 272
  """Checks if the given value is a dictionary.
b/lib/opcodes.py
554 554
    job_id = ht.TJobId
555 555

  
556 556
  job_dep = \
557
    ht.TAnd(ht.TIsLength(2),
557
    ht.TAnd(ht.TOr(ht.TList, ht.TTuple),
558
            ht.TIsLength(2),
558 559
            ht.TItems([job_id,
559 560
                       ht.TListOf(ht.TElemOf(constants.JOBS_FINALIZED))]))
560 561

  

Also available in: Unified diff