Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d31adc5

Browse files
committed
FIX: Fix super call for Python 2.7
1 parent 48d50fc commit d31adc5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/backends/backend_qt5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ def _init_toolbar(self):
640640
# the actual sizeHint, so override it instead in order to make the
641641
# aesthetic adjustments noted above.
642642
def sizeHint(self):
643-
size = super().sizeHint()
643+
size = super(NavigationToolbar2QT, self).sizeHint()
644644
size.setHeight(max(48, size.height()))
645645
return size
646646

0 commit comments

Comments
 (0)