Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d02024e commit fb6fa1dCopy full SHA for fb6fa1d
1 file changed
lib/matplotlib/backends/backend_qt5.py
@@ -170,11 +170,8 @@ def wrapper(self, **kwargs):
170
QtWidgets.QWidget.__init__ = cooperative_qwidget_init
171
__init__(self, **kwargs)
172
finally:
173
- try:
174
- # Restore __init__ to sip.simplewrapper.__init__.
175
- del QtWidgets.QWidget.__init__
176
- except AttributeError:
177
- pass
+ # Restore __init__
+ QtWidgets.QWidget.__init__ = qwidget_init
178
179
return wrapper
180
0 commit comments