Ensure migrator does not mangle `cli.CommandsByName`

main
Dan Buch 7 years ago
parent a372849da6
commit ce3a0da1a3
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7

@ -236,7 +236,11 @@ def _flag_name_stringly_repl(match):
@_migrator
def _commands_opaque_type(source):
return re.sub('cli\\.Commands', '[]*cli.Command', source, flags=re.UNICODE)
return _subfmt(
'cli\\.Commands(?P<suffix>[^B])',
'[]*cli.Command{suffix}',
source
)
@_migrator

Loading…
Cancel
Save