(v, n)
| 1172 | """Enables batch request for the method classname.name.""" |
| 1173 | func = getattr(classname, name, None) |
| 1174 | def _func(v, n): |
| 1175 | if type(n) is int and (n < 0 or n >= v.piece_size()): |
| 1176 | raise IndexError('piece id is out of range.') |
| 1177 | return func(v, n) |
| 1178 | |
| 1179 | def _batched_func(self, arg): |
| 1180 | if type(arg) is list: |
no test coverage detected