def update_old_plan(old_plan):
 plan = []
 for line in old_plan:
  if line.startswith(u'#'):
   continue
  if (u' ' not in line):
   raise ArgumentError((u"The instruction '%s' takes at least one argument" % line))
  (instruction, arg) = line.split(u' ', 1)
  plan.append((instruction, arg))
 return plan

def update_old_plan ( old_plan ) : plan = [ ] for line in old_plan : if line . startswith ( u'#' ) : continue if ( u' ' not in line ) : raise ArgumentError ( ( u"The instruction '%s' takes at least one argument" % line ) ) ( instruction , arg ) = line . split ( u' ' , 1 ) plan . append ( ( instruction , arg ) ) return plan
update an old plan object to work with conda .