remove arg_check macro in thread mod

This commit is contained in:
Wenjie Yang
2020-04-28 23:45:36 -07:00
parent ad111b029f
commit b81773d1d4

View File

@@ -23,18 +23,14 @@ fn rlock_enter(vm: &VirtualMachine, args: PyFuncArgs) -> PyResult {
Ok(instance.clone())
}
fn rlock_exit(vm: &VirtualMachine, args: PyFuncArgs) -> PyResult {
arg_check!(
vm,
args,
// The context manager protocol requires these, but we don't use them
required = [
(_instance, None),
(_exception_type, None),
(_exception_value, None),
(_traceback, None)
]
);
fn rlock_exit(
// The context manager protocol requires these, but we don't use them
_instance: PyObjectRef,
_exception_type: PyObjectRef,
_exception_value: PyObjectRef,
_traceback: PyObjectRef,
vm: &VirtualMachine,
) -> PyResult {
Ok(vm.get_none())
}