def ex_call(func, args):
 if isinstance(func, six.string_types):
  func = ex_rvalue(func)
 args = list(args)
 for i in range(len(args)):
  if (not isinstance(args[i], ast.expr)):
   args[i] = ex_literal(args[i])
 if (sys.version_info[:2] < (3, 5)):
  return ast.Call(func, args, [], None, None)
 else:
  return ast.Call(func, args, [])

def ex_call ( func , args ) : if isinstance ( func , six . string_types ) : func = ex_rvalue ( func ) args = list ( args ) for i in range ( len ( args ) ) : if ( not isinstance ( args [ i ] , ast . expr ) ) : args [ i ] = ex_literal ( args [ i ] ) if ( sys . version_info [ : 2 ] < ( 3 , 5 ) ) : return ast . Call ( func , args , [ ] , None , None ) else : return ast . Call ( func , args , [ ] )
a function-call expression with only positional parameters .