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

Skip to content

Commit b8f127b

Browse files
committed
Fix string format substitution key missing error
Replace `{..}` literal as `{{..}}` to avoid key substitution error: KeyError: "'h', 'v'"
1 parent 497ffa8 commit b8f127b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/api/filled_step.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def filled_hist(ax, edges, values, bottoms=None, orientation='v',
4141
"""
4242
print(orientation)
4343
if orientation not in set('hv'):
44-
raise ValueError("orientation must be in {'h', 'v'} "
44+
raise ValueError("orientation must be in {{'h', 'v'}} "
4545
"not {o}".format(o=orientation))
4646

4747
kwargs.setdefault('step', 'post')

0 commit comments

Comments
 (0)