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 75336c4

Browse filesBrowse files
committed
Wrap lines for PEP8 compliance
1 parent 223d75a commit 75336c4
Copy full SHA for 75336c4

File tree

Expand file treeCollapse file tree

2 files changed

+8
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+8
-4
lines changed

‎lib/matplotlib/contour.py

Copy file name to clipboardExpand all lines: lib/matplotlib/contour.py
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1449,10 +1449,12 @@ def _check_xyz(self, args, kwargs):
14491449
elif x.ndim == 2:
14501450

14511451
if x.shape != z.shape:
1452-
raise TypeError("Shape of x does not match that of z: found {0} instead of {1}.".format(x.shape, z.shape))
1452+
raise TypeError("Shape of x does not match that of z: found "
1453+
"{0} instead of {1}.".format(x.shape, z.shape))
14531454

14541455
if y.shape != z.shape:
1455-
raise TypeError("Shape of y does not match that of z: found {0} instead of {1}.".format(y.shape, z.shape))
1456+
raise TypeError("Shape of y does not match that of z: found "
1457+
"{0} instead of {1}.".format(y.shape, z.shape))
14561458

14571459
else:
14581460

‎lib/matplotlib/tests/test_contour.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_contour.py
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,14 @@ def test_contour_shape_mismatch_4():
9797
ax.contour(b, g, z)
9898
except TypeError as exc:
9999
print exc.args[0]
100-
assert exc.args[0] == 'Shape of x does not match that of z: found (9, 9) instead of (9, 10).'
100+
assert exc.args[0] == 'Shape of x does not match that of z: ' + \
101+
'found (9, 9) instead of (9, 10).'
101102

102103
try:
103104
ax.contour(g, b, z)
104105
except TypeError as exc:
105-
assert exc.args[0] == 'Shape of y does not match that of z: found (9, 9) instead of (9, 10).'
106+
assert exc.args[0] == 'Shape of y does not match that of z: ' + \
107+
'found (9, 9) instead of (9, 10).'
106108

107109

108110
@cleanup

0 commit comments

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