Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: matplotlib/matplotlib
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: wmanley/matplotlib
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Sep 19, 2014

  1. pyplot: Fix exception in _backend_selection during import

    if the new style introspection GObject python bindings are in use.  With
    pygobject >= 3.13.4 the following:
    
        from gi.repository import GObject
        from matplotlib import pyplot
    
    causes an exception to be raised:
    
    > AttributeError: When using gi.repository you must not import static modules
    > like "gobject". Please change all occurrences of "import gobject" to "from
    > gi.repository import GObject". See:
    > https://bugzilla.gnome.org/show_bug.cgi?id=709183
    
    It is not valid to use both non-introspection based and introspection based
    PyGObject in the same process.  Backend probing will `import gobject` (i.e. the
    non-introspection bindings) if it sees that the 'gtk' module is loaded.
    Unfortunately it wouldn't check if this was the pygi or old-style gtk module.
    This commit adds this check avoiding the exception.
    
    This check was added to PyGObject in [d704033][1]
    
    [1]: https://git.gnome.org/browse/pygobject/commit/?id=d704033
    wmanley committed Sep 19, 2014
    Configuration menu
    Copy the full SHA
    3a21db1 View commit details
    Browse the repository at this point in the history
Loading