Skip to content

Update super usage in the "qt" backend#944

Merged
rahulporuri merged 2 commits into
masterfrom
update-super-usage-qt-toolkit
Jun 14, 2021
Merged

Update super usage in the "qt" backend#944
rahulporuri merged 2 commits into
masterfrom
update-super-usage-qt-toolkit

Conversation

@rahulporuri
Copy link
Copy Markdown
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 were two instances where a super was being called with the wrong arguments - which got fixed in this PR.

See similar PR enthought/traits#1280

This commit updates super usage in a semi-automated fashion. We used
regex-based search and replace to update the super usage. Note that
there were two instances where a super was being called with the wrong
arguments - which got fixed in this commit.
Comment thread pyface/ui/qt4/code_editor/replace_widget.py
application_running = Event()

def __init__(self):
super(HasStrictTraits, self).__init__()
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.

the second of two instances of potentially buggy super usage

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

I went through and checked for any "potentially buggy" cases as we have called them previously. Only found 2 which I believe should be fine. lol I had started this review before seeing your comments and hadn't refreshed. Disregard my comments as you have already pointed them out

Comment thread pyface/ui/qt4/code_editor/replace_widget.py
Comment thread pyface/ui/qt4/tests/test_gui.py
Copy link
Copy Markdown
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

@rahulporuri rahulporuri merged commit 0aecbd1 into master Jun 14, 2021
@rahulporuri rahulporuri deleted the update-super-usage-qt-toolkit branch June 14, 2021 12:12
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