Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Image._new() instead of _makeself() #2248

Merged
merged 2 commits into from
Nov 24, 2016

Conversation

homm
Copy link
Member

@homm homm commented Nov 23, 2016

No description provided.

@wiredfool
Copy link
Member

Is there any reason to have this line anymore?

  _makeself = _new  # compatibility

It's a supposedly private function, and it doesn't show up anywhere else in our code.

@homm
Copy link
Member Author

homm commented Nov 23, 2016

I don't know, it's up to you )

@hugovk
Copy link
Member

hugovk commented Nov 23, 2016

_makeself was inherited from the initial PIL fork:

https://github.com/python-pillow/Pillow/blame/adfbe8323aa9daf453872fd60561a865b95beb24/PIL/Image.py#L897
https://github.com/python-pillow/Pillow/blame/adfbe8323aa9daf453872fd60561a865b95beb24/PIL/Image.py#L498

And _makeself() was a function in PIL 1.1.1, but was replaced with _makeself = _new # compatibility in PIL 1.1.2:

(big slow-to-load diff:)

hugovk/PIL@1f91cfd#diff-3fef5f960d5bd8bdfb9c6fadcf96af22L302

@wiredfool
Copy link
Member

Ah. I'd say it should go then.

@homm
Copy link
Member Author

homm commented Nov 24, 2016

Removed

@hugovk hugovk merged commit fb54b1d into python-pillow:master Nov 24, 2016
@homm homm deleted the use-_new branch February 27, 2017 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants