def list_update(t):
 slug = raw_input(light_magenta('Your list that you want to update: ', rl=True))
 name = raw_input(light_magenta('Update name (leave blank to unchange): ', rl=True))
 mode = raw_input(light_magenta('Update mode (public/private): ', rl=True))
 description = raw_input(light_magenta('Update description: ', rl=True))
 try:
  if name:
   t.lists.update(slug='-'.join(slug.split()), owner_screen_name=g['original_name'], name=name, mode=mode, description=description)
  else:
   t.lists.update(slug=slug, owner_screen_name=g['original_name'], mode=mode, description=description)
  printNicely(green((slug + ' list is updated.')))
 except:
  debug_option()
  printNicely(red('Oops something is wrong with Twitter :('))

def list_update ( t ) : slug = raw_input ( light_magenta ( 'Your list that you want to update: ' , rl = True ) ) name = raw_input ( light_magenta ( 'Update name (leave blank to unchange): ' , rl = True ) ) mode = raw_input ( light_magenta ( 'Update mode (public/private): ' , rl = True ) ) description = raw_input ( light_magenta ( 'Update description: ' , rl = True ) ) try : if name : t . lists . update ( slug = '-' . join ( slug . split ( ) ) , owner_screen_name = g [ 'original_name' ] , name = name , mode = mode , description = description ) else : t . lists . update ( slug = slug , owner_screen_name = g [ 'original_name' ] , mode = mode , description = description ) printNicely ( green ( ( slug + ' list is updated.' ) ) ) except : debug_option ( ) printNicely ( red ( 'Oops something is wrong with Twitter :(' ) )
update a list .