Cleanup: Replace absolute PIL imports with relative imports #2342

Closed
jleclanche opened this Issue Jan 6, 2017 · 0 comments

Projects

None yet

2 participants

@jleclanche
Contributor
jleclanche commented Jan 6, 2017 edited

There's a ton of stuff like this in all the plugins:

from PIL import Image, ImageFile, ImagePalette, _binary

The ones shipped with PIL should be using relative imports instead.

This would also be a good occasion to replace all this kind of nonsense:

from PIL import Image, ImageFile, ImagePalette, _binary
i8 = _binary.i8
i16 = _binary.i16le
i32 = _binary.i32le
o8 = _binary.o8
o16 = _binary.o16le
o32 = _binary.o32le

With this:

from ._binary import i8, i16, i32, o8, o16, o32
@aclark4life aclark4life added this to the Future milestone Jan 8, 2017
@wiredfool wiredfool closed this in #2349 Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment