From b8f127bc0f31e876719b25beafbbb9714ff0846d Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Mon, 21 Dec 2015 12:53:15 +1100 Subject: [PATCH] Fix string format substitution key missing error Replace `{..}` literal as `{{..}}` to avoid key substitution error: KeyError: "'h', 'v'" --- examples/api/filled_step.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/api/filled_step.py b/examples/api/filled_step.py index 42d61dc91766..4f248a51bb62 100644 --- a/examples/api/filled_step.py +++ b/examples/api/filled_step.py @@ -41,7 +41,7 @@ def filled_hist(ax, edges, values, bottoms=None, orientation='v', """ print(orientation) if orientation not in set('hv'): - raise ValueError("orientation must be in {'h', 'v'} " + raise ValueError("orientation must be in {{'h', 'v'}} " "not {o}".format(o=orientation)) kwargs.setdefault('step', 'post')