def _make_subtarget(targetctx, flags):
 subtargetoptions = {}
 if flags.boundcheck:
  subtargetoptions['enable_boundcheck'] = True
 if flags.nrt:
  subtargetoptions['enable_nrt'] = True
 error_model = callconv.create_error_model(flags.error_model, targetctx)
 subtargetoptions['error_model'] = error_model
 return targetctx.subtarget(**subtargetoptions)

def _make_subtarget ( targetctx , flags ) : subtargetoptions = { } if flags . boundcheck : subtargetoptions [ 'enable_boundcheck' ] = True if flags . nrt : subtargetoptions [ 'enable_nrt' ] = True error_model = callconv . create_error_model ( flags . error_model , targetctx ) subtargetoptions [ 'error_model' ] = error_model return targetctx . subtarget ( ** subtargetoptions )
make a new target context from the given target context and flags .