(path)
| 190 | |
| 191 | |
| 192 | def accimage_loader(path): |
| 193 | import accimage |
| 194 | try: |
| 195 | return accimage.Image(path) |
| 196 | except IOError: |
| 197 | # Potentially a decoding problem, fall back to PIL.Image |
| 198 | return pil_loader(path) |
| 199 | |
| 200 | |
| 201 | def default_img_loader(path): |
no test coverage detected