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 ade114f

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

File tree

Expand file treeCollapse file tree

2 files changed

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

2 files changed

+4
-3
lines changed

‎lib/matplotlib/style/core.py

Copy file name to clipboardExpand all lines: lib/matplotlib/style/core.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_style.py
+3-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.