Check whether obj behaves like a bytes object.
(obj)
| 46 | |
| 47 | |
| 48 | def _is_bytes_like(obj): |
| 49 | """ |
| 50 | Check whether obj behaves like a bytes object. |
| 51 | """ |
| 52 | try: |
| 53 | obj + b'' |
| 54 | except (TypeError, ValueError): |
| 55 | return False |
| 56 | return True |
| 57 | |
| 58 | |
| 59 | def has_nested_fields(ndtype): |
nothing calls this directly
no outgoing calls
no test coverage detected