def complete_base(prefix, line, start, end, ctx):
 if (line.strip() == ''):
  out = (complete_python(prefix, line, start, end, ctx) | complete_command(prefix, line, start, end, ctx))
  paths = complete_path(prefix, line, start, end, ctx, False)
  return ((out | paths[0]), paths[1])
 elif (prefix == line):
  python_comps = complete_python(prefix, line, start, end, ctx)
  if isinstance(python_comps, cabc.Sequence):
   return ((python_comps[0] | complete_command(prefix, line, start, end, ctx)), python_comps[1])
  else:
   return (python_comps | complete_command(prefix, line, start, end, ctx))
 return set()

def complete_base ( prefix , line , start , end , ctx ) : if ( line . strip ( ) == '' ) : out = ( complete_python ( prefix , line , start , end , ctx ) | complete_command ( prefix , line , start , end , ctx ) ) paths = complete_path ( prefix , line , start , end , ctx , False ) return ( ( out | paths [ 0 ] ) , paths [ 1 ] ) elif ( prefix == line ) : python_comps = complete_python ( prefix , line , start , end , ctx ) if isinstance ( python_comps , cabc . Sequence ) : return ( ( python_comps [ 0 ] | complete_command ( prefix , line , start , end , ctx ) ) , python_comps [ 1 ] ) else : return ( python_comps | complete_command ( prefix , line , start , end , ctx ) ) return set ( )
if the line is empty .