(path)
| 59 | |
| 60 | |
| 61 | def accimage_loader(path): |
| 62 | import accimage |
| 63 | try: |
| 64 | return accimage.Image(path) |
| 65 | except IOError: |
| 66 | # Potentially a decoding problem, fall back to PIL.Image |
| 67 | return pil_loader(path) |
| 68 | |
| 69 | |
| 70 | def default_loader(path): |
no test coverage detected