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

Proposed fix for Issue #17 #18

Merged
merged 1 commit into from
Jan 4, 2017
Merged

Proposed fix for Issue #17 #18

merged 1 commit into from
Jan 4, 2017

Conversation

sndgeek
Copy link

@sndgeek sndgeek commented Jan 4, 2017

Use "Line" instead of "self.class" in call to super() inside calculate_left_margin(). This prevents an infinite recursion problem calling ourselves if a user subclasses the Line class.

Proposed fix for Issue #17.

…ulate_left_margin(). This prevents an infinite recursion problem calling ourselves if a user subclasses the Line class.
@jaraco
Copy link
Owner

jaraco commented Jan 4, 2017

You're right. This code is from my fairly early days in Python and coming from C++, I wanted so badly not to have to write the class name in a super call. Thanks to Python 3, eventually this won't be necessary, but for now, it's exactly the right thing to do.

@jaraco jaraco merged commit cc91643 into jaraco:master Jan 4, 2017
@jaraco
Copy link
Owner

jaraco commented Jan 4, 2017

3.4.4 is rolling out now with this fix. Thanks.

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.

2 participants