Skip to content
Myr

Converted a leftover old-style click callback.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 01450ef · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:flask/cli.py+1 added-1 removed
317 unmodified lines
318 except LookupError:319 raise TypeError('script_info_key not provided.')320321 real_callback = kwargs.get('callback')322 def callback(ctx, value):322 def callback(ctx, param, value):323 if real_callback is not None:324 value = real_callback(ctx, value)325 ctx.ensure_object(ScriptInfo).data[key] = value326 return value
122 unmodified lines