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

Update super usage #300

Merged
merged 1 commit into from
Aug 26, 2020
Merged

Update super usage #300

merged 1 commit into from
Aug 26, 2020

Conversation

rahulporuri
Copy link
Contributor

See similar PR enthought/traits#1280

All of the changes were done using automated regex-based search and replace. The regex used was - (super)+\(+(\w+)(,)+\s(self)+\)+. The changes were individually added using git add -p *.

done using automated regex-based search and replace
Copy link
Member

@mdickinson mdickinson left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -74,7 +74,7 @@ def _on_project_changed(self, obj, trait_name, old, new):
if new is not None:
self._update_project_listeners(new, remove=False)

super(SaveAsAction, self)._on_project_changed(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ohh god looks like this path is never tested/exercised because the class name is SaveAsProjectAction and there is no SaveAsAction. It's possible that this class was called SaveAsAction earlier

Copy link
Member

Choose a reason for hiding this comment

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

See also #269. single_project should just die

@@ -71,7 +71,7 @@ def _on_project_changed(self, obj, trait_name, old, new):
if new is not None:
self._update_project_listeners(new, remove=False)

super(SaveAction, self)._on_project_changed(obj, trait_name, old, new)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

same as earlier here. The class name is SaveProjectAction, not SaveAction.

@rahulporuri rahulporuri merged commit 8eddfc4 into master Aug 26, 2020
@rahulporuri rahulporuri deleted the cln/super-usage branch August 26, 2020 10:14
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