(thing)
| 290 | |
| 291 | # Not by any means perfect, but good enough for our purposes. |
| 292 | def is_file(thing): |
| 293 | return hasattr(thing, "read") and callable(thing.read) |
| 294 | |
| 295 | # Each bit of the multipart form data could be either a form value or a |
| 296 | # file, or a *list* of form values and/or files. Remember that HTTP field |
no test coverage detected