Skip to content

Update super usage#300

Merged
rahulporuri merged 1 commit into
masterfrom
cln/super-usage
Aug 26, 2020
Merged

Update super usage#300
rahulporuri merged 1 commit into
masterfrom
cln/super-usage

Conversation

@rahulporuri
Copy link
Copy Markdown
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
@rahulporuri rahulporuri requested a review from mdickinson August 26, 2020 08:29
Copy link
Copy Markdown
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

if new is not None:
self._update_project_listeners(new, remove=False)

super(SaveAsAction, self)._on_project_changed(
Copy link
Copy Markdown
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
Copy Markdown
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

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
Copy Markdown
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