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

Cleanup super usage in toolkit agnostic code #946

Merged
merged 2 commits into from
Jun 14, 2021

Conversation

rahulporuri
Copy link
Contributor

This PR updates super usage in a semi-automated fashion. We used regex-based search and replace to update the super usage. Note that there was one unnnecessary redefinition of __init__ which got removed in this PR.

See similar PR #944, #945 and enthought/traits#1280

This commit cleans up the super usage in the toolkit-agnostic pyface
code using semi-automated regex-based search and replace.

Note that this commit removes a redundant redefinition of __init__
Comment on lines -3833 to -3834
def __init__(self, **kw):
super(DockInfo, self).__init__(**kw)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is an unnecessary redefinition of __init__ which we removed

Copy link
Contributor

@aaronayres35 aaronayres35 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

just one additional unnecessary redefinition of __init__ that could be removed

pyface/dock/dock_sizer.py Outdated Show resolved Hide resolved
@rahulporuri rahulporuri merged commit 63bae07 into master Jun 14, 2021
@rahulporuri rahulporuri deleted the update-super-usage-toolkit-agnostic branch June 14, 2021 12:59
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