import ast


def genAssignStraight(to: ast.Name, fieldName: str, processorFunc: ast.Attribute, o: ast.Name) -> ast.Assign:
	"""Returns `to.fieldName = processorFunc(o.fieldName)`"""

	return ast.Assign(
		targets=[ast.Attribute(value=to, attr=fieldName, ctx=ast.Store())],
		value=ast.Call(
			func=processorFunc,
			args=[ast.Attribute(value=o, attr=fieldName, ctx=ast.Load())],
			keywords=[],
		),
		type_comment=None,
	)