Revision d2234191

b/lib/utils/io.py
681 681
  @raise ValueError: for invalid paths
682 682

  
683 683
  """
684
  # ensure we're having at least one path passed in
685
  assert args
684
  # ensure we're having at least two paths passed in
685
  if len(args) <= 1:
686
    raise errors.ProgrammerError("PathJoin requires two arguments")
686 687
  # ensure the first component is an absolute and normalized path name
687 688
  root = args[0]
688 689
  if not IsNormAbsPath(root):

Also available in: Unified diff