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

Skip to content

Commit 75336c4

Browse files
committed
Wrap lines for PEP8 compliance
1 parent 223d75a commit 75336c4

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

lib/matplotlib/contour.py

Lines 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

Lines 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)