Return whether *obj* looks like a file object with a *write* method.
(obj)
| 515 | |
| 516 | |
| 517 | def is_writable_file_like(obj): |
| 518 | """Return whether *obj* looks like a file object with a *write* method.""" |
| 519 | return callable(getattr(obj, 'write', None)) |
| 520 | |
| 521 | |
| 522 | def file_requires_unicode(x): |
no outgoing calls
no test coverage detected
searching dependent graphs…