Utility function which converts lists to tuples.
(self, value)
| 492 | return result |
| 493 | |
| 494 | def as_tuple(self, value): |
| 495 | """Utility function which converts lists to tuples.""" |
| 496 | if isinstance(value, list): |
| 497 | value = tuple(value) |
| 498 | return value |
| 499 | |
| 500 | def _is_queue_like_object(obj): |
| 501 | """Check that *obj* implements the Queue API.""" |
no outgoing calls