File tree Expand file tree Collapse file tree
remove-json-keys/src/remove_json_keys/lib
translate-messages/src/translate_messages/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,7 +69,8 @@ def get_msgs(cli: sn, lang_code: str = 'en') -> sn:
6969 import non_latin_locales
7070 if lang_code .split ('_' )[0 ] in non_latin_locales and not env .can_render_non_latin_scripts (): # type: ignore
7171 return sn (** msgs ) # EN ones cuz non-Latin not supported
72- msg_base_url = f'{ jsdelivr .create_commit_url (cli , cli .commit_hashes .locales )} /src/remove_json_keys/data/_locales'
72+ msg_base_url = f'{ jsdelivr .create_commit_url (cli , cli .commit_hashes .locales )} ' \
73+ '/src/remove_json_keys/data/_locales'
7374 msg_url = f'{ msg_base_url } /{ lang_code } /messages.json'
7475 for attempt in range (3 ):
7576 try : # fetch remote msgs
Original file line number Diff line number Diff line change @@ -112,7 +112,8 @@ def load(cli: sn) -> None:
112112 if unknown_args and not all (any (arg == exempt for exempt in exempt_flags ) for arg in unknown_args ):
113113 log .cmd_docs_url_exit (cli , f"{ cli .msgs .err_UNRECOGNIZED_ARGS } : { ' ' .join (unknown_args )} " , cmd = 'help' )
114114 for ctrl_key , ctrl in vars (controls ).items (): # process subcmds
115- if getattr (ctrl , 'subcmd' , False ) and next (arg for arg in ctrl .args if arg .startswith ('--' ))[2 :] in sys .argv [1 :]:
115+ if getattr (ctrl , 'subcmd' , False ) \
116+ and next (arg for arg in ctrl .args if arg .startswith ('--' ))[2 :] in sys .argv [1 :]:
116117 setattr (parsed_args , ctrl_key , True )
117118 applied_args = []
118119 for arg in sys .argv [1 :]:
Original file line number Diff line number Diff line change @@ -100,7 +100,8 @@ def get_msgs(cli: sn, lang_code: str = 'en') -> sn:
100100 import non_latin_locales
101101 if lang_code .split ('_' )[0 ] in non_latin_locales and not env .can_render_non_latin_scripts (): # type: ignore
102102 return sn (** msgs ) # EN ones cuz non-Latin not supported
103- msg_base_url = f'{ jsdelivr .create_commit_url (cli , cli .commit_hashes .locales )} /src/translate_messages/data/_locales'
103+ msg_base_url = f'{ jsdelivr .create_commit_url (cli , cli .commit_hashes .locales )} ' \
104+ '/src/translate_messages/data/_locales'
104105 msg_url = f'{ msg_base_url } /{ lang_code } /messages.json'
105106 for attempt in range (3 ):
106107 try : # fetch remote msgs
Original file line number Diff line number Diff line change @@ -122,7 +122,8 @@ def load(cli: sn) -> None:
122122 if unknown_args and not all (any (arg == exempt for exempt in exempt_flags ) for arg in unknown_args ):
123123 log .cmd_docs_url_exit (cli , f"{ cli .msgs .err_UNRECOGNIZED_ARGS } : { ' ' .join (unknown_args )} " , cmd = 'help' )
124124 for ctrl_key , ctrl in vars (controls ).items (): # process subcmds
125- if getattr (ctrl , 'subcmd' , False ) and next (arg for arg in ctrl .args if arg .startswith ('--' ))[2 :] in sys .argv [1 :]:
125+ if getattr (ctrl , 'subcmd' , False ) \
126+ and next (arg for arg in ctrl .args if arg .startswith ('--' ))[2 :] in sys .argv [1 :]:
126127 setattr (parsed_args , ctrl_key , True )
127128 applied_args = []
128129 for arg in sys .argv [1 :]:
You can’t perform that action at this time.
0 commit comments