Simplify arg copying

This commit is contained in:
Jason Rhinelander 2017-12-15 13:21:52 -04:00 committed by Wenzel Jakob
parent 155cc7c4d2
commit 0c7aec480a

View File

@ -588,8 +588,7 @@ protected:
size_t args_size = n_args_in - args_copied;
extra_args = tuple(args_size);
for (size_t i = 0; i < args_size; ++i) {
handle item = PyTuple_GET_ITEM(args_in, args_copied + i);
extra_args[i] = reinterpret_borrow<object>(item);
extra_args[i] = PyTuple_GET_ITEM(args_in, args_copied + i);
}
}
call.args.push_back(extra_args);