-
Notifications
You must be signed in to change notification settings - Fork 54
Update super usage in the "wx" and "null" backends #945
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -56,7 +56,7 @@ def __init__(self, parent, **traits): | |
| """ Creates a new pager. """ | ||
|
|
||
| # Base class constructor. | ||
| super(PythonShell, self).__init__(**traits) | ||
| super().__init__(**traits) | ||
|
|
||
| # Create the toolkit-specific control that represents the widget. | ||
| self.control = self._create_control(parent) | ||
|
|
@@ -263,7 +263,7 @@ def __init__( | |
| # wx.py.shell dosent reassign it back to the original on destruction | ||
| self.raw_input = input | ||
|
|
||
| super(PyShell, self).__init__( | ||
| super().__init__( | ||
| parent, | ||
| id, | ||
| pos, | ||
|
|
@@ -309,7 +309,7 @@ def Destroy(self): | |
| self.redirectStdin(False) | ||
| builtins.raw_input = self.raw_input | ||
| self.destroy() | ||
| super(PyShellBase, self).Destroy() | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a potentially buggy use of
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| super().Destroy() | ||
|
|
||
|
|
||
| class _NullIO(object): | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we removed this redundant redefinition of
__init__