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

Skip to content

Commit 88dbef7

Browse files
committed
raise NotImplementedError instead of pass for FigureManagerBase window_title methods
1 parent 395acc1 commit 88dbef7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2426,14 +2426,14 @@ def get_window_title(self):
24262426
Get the title text of the window containing the figure.
24272427
Return None if there is no window (eg, a PS backend).
24282428
"""
2429-
pass
2429+
raise NotImplementedError
24302430

24312431
def set_window_title(self, title):
24322432
"""
24332433
Set the title text of the window containing the figure. Note that
24342434
this has no effect if there is no window (eg, a PS backend).
24352435
"""
2436-
pass
2436+
raise NotImplementedError
24372437

24382438

24392439
class Cursors:

0 commit comments

Comments
 (0)