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 2ce78a7

Browse filesBrowse files
committed
MNT: Reraise the same exception
Fixed a sloppy copy/paste in py2/py3 compatible reraising
1 parent fdfb92b commit 2ce78a7
Copy full SHA for 2ce78a7

File tree

Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed

‎lib/mpl_toolkits/axes_grid1/axes_rgb.py

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/axes_grid1/axes_rgb.py
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import numpy as np
77
from .axes_divider import make_axes_locatable, Size, locatable_axes_factory
88
import sys
9-
import warnings
109

1110
def make_rgb_axes(ax, pad=0.01, axes_class=None, add_all=True):
1211
"""
@@ -128,7 +127,7 @@ def __init__(self, *kl, **kwargs):
128127
"_defaultAxesClass attribute. If you are not sure which "
129128
"axes class to use, consider using "
130129
"mpl_toolkits.axes_grid1.mpl_axes.Axes.")
131-
six.reraise(KeyError, AttributeError(new_msg),
130+
six.reraise(AttributeError, AttributeError(new_msg),
132131
sys.exc_info()[2])
133132

134133
ax = axes_class(*kl, **kwargs)

0 commit comments

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