Skip to content

Commit ade114f

Browse files
committed
Fixing "line too long (80 > 79 characters)". :-/
1 parent 0fe5f25 commit ade114f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/matplotlib/style/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def context(style, after_reset=False):
114114
try:
115115
use(style)
116116
except:
117-
# Restore original settings before raising any errors during the update.
117+
# Restore original settings before raising errors during the update.
118118
mpl.rcParams.update(initial_settings)
119119
raise
120120
else:

lib/matplotlib/tests/test_style.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ def test_context_with_badparam():
121121
if sys.version_info[:2] >= (2, 7):
122122
from collections import OrderedDict
123123
else:
124-
msg = "Test can only be run in Python >= 2.7 as it requires OrderedDict"
125-
raise SkipTest(msg)
124+
m = "Test can only be run in Python >= 2.7 as it requires OrderedDict"
125+
raise SkipTest(m)
126126

127127
original_value = 'gray'
128128
other_value = 'blue'
@@ -133,6 +133,7 @@ def test_context_with_badparam():
133133
assert_raises(KeyError, x.__enter__)
134134
assert mpl.rcParams[PARAM] == other_value
135135

136+
136137
if __name__ == '__main__':
137138
from numpy import testing
138139
testing.run_module_suite()

0 commit comments

Comments
 (0)