(path)
| 37 | |
| 38 | |
| 39 | def accimage_loader(path): |
| 40 | import accimage |
| 41 | try: |
| 42 | return accimage.Image(path) |
| 43 | except IOError: |
| 44 | # Potentially a decoding problem, fall back to PIL.Image |
| 45 | return pil_loader(path) |
| 46 | |
| 47 | |
| 48 | def pil_loader(path): |
no test coverage detected