File tree Expand file tree Collapse file tree
remove-json-keys/src/remove_json_keys/lib
translate-messages/src/translate_messages Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ def load(cli, caller_file):
5151 argp = argparse .ArgumentParser (description = cli .description , add_help = False )
5252 for attr_name in vars (controls ):
5353 kwargs = getattr (controls , attr_name ).__dict__ .copy ()
54- args = kwargs .pop ('args' ) # separate positional flags
54+ args = kwargs .pop ('args' ) # separate positional flags
5555 for forbidden in ('default_val' , 'parser' ): # remove custom attrs
5656 kwargs .pop (forbidden , None )
5757 argp .add_argument (* args , ** kwargs )
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ def main():
2424 cli .msgs_filename = 'messages.json'
2525 cli .locales_path = Path (cli .config .locales_dir )
2626 cli .en_msgs = data .json .read (cli .locales_path / 'en' / cli .msgs_filename )
27- cli .config .target_langs = list (set (cli .config .target_langs )) # remove dupes
27+ cli .config .target_langs = list (set (cli .config .target_langs )) # remove dupes
2828
2929 if not cli .config .target_langs :
3030 cli .config .target_langs = cli .supported_locales
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ def load(cli, caller_file):
6363 argp = argparse .ArgumentParser (description = cli .description , add_help = False )
6464 for attr_name in vars (controls ):
6565 kwargs = getattr (controls , attr_name ).__dict__ .copy ()
66- args = kwargs .pop ('args' ) # separate positional flags
66+ args = kwargs .pop ('args' ) # separate positional flags
6767 for forbidden in ('default_val' , 'parser' ): # remove custom attrs
6868 kwargs .pop (forbidden , None )
6969 argp .add_argument (* args , ** kwargs )
You can’t perform that action at this time.
0 commit comments