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

Skip to content

Commit 51cb54b

Browse files
committed
pep8 fix
1 parent 4e11178 commit 51cb54b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/matplotlib/style/core.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def use(styles):
6363
6464
"""
6565
if cbook.is_string_like(styles):
66-
styles = [styles]
66+
styles = [styles]
6767
flattened_style = _flatten_style_dict({PARENT_STYLES: styles})
6868
mpl.rcParams.update(flattened_style)
6969

@@ -120,7 +120,8 @@ def flatten_inheritance_dict(child_dict, parent_key,
120120

121121

122122
def _flatten_style_dict(style_dict):
123-
return flatten_inheritance_dict(style_dict, PARENT_STYLES, expand_parent=_expand_parent)
123+
return flatten_inheritance_dict(style_dict, PARENT_STYLES,
124+
expand_parent=_expand_parent)
124125

125126

126127
def get_style_dict(style):
@@ -138,11 +139,11 @@ def get_style_dict(style):
138139
else:
139140
try:
140141
return rc_params_from_file(style,
141-
use_default_template=False)
142+
use_default_template=False)
142143
except IOError:
143144
msg = ("'%s' not found in the style library and input is "
144-
"not a valid URL or path. See `style.available` for "
145-
"list of available styles.")
145+
"not a valid URL or path. See `style.available` for "
146+
"list of available styles.")
146147
raise IOError(msg % style)
147148

148149

0 commit comments

Comments
 (0)