Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8eb36dc

Browse filesBrowse files
committed
Follow-on to 5bb6405 to be safer about the version check in the backend itself.
1 parent 3165537 commit 8eb36dc
Copy full SHA for 8eb36dc

File tree

1 file changed

+3
-0
lines changed
Filter options

1 file changed

+3
-0
lines changed

‎lib/matplotlib/backends/backend_gtk3.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_gtk3.py
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ def fn_name(): return sys._getframe(1).f_code.co_name
1010

1111
try:
1212
gi.require_version("Gtk", "3.0")
13+
except AttributeError:
14+
raise ImportError(
15+
"pygobject version too old -- it must have require_version")
1316
except ValueError:
1417
raise ImportError(
1518
"Gtk3 backend requires the GObject introspection bindings for Gtk 3 "

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.