diff options
author | ptmcg <ptmcg@austin.rr.com> | 2021-10-24 09:28:29 -0500 |
---|---|---|
committer | ptmcg <ptmcg@austin.rr.com> | 2021-10-24 09:28:29 -0500 |
commit | a80951bdb0d75c2d7f81a7cd2fda31f7f02d045b (patch) | |
tree | f046e44b25c46b0a9324cca25bea4e7f1c29df8e /pyparsing/helpers.py | |
parent | 5d6c14a959d1eb3f7c178c10fba34326058a2166 (diff) | |
download | pyparsing-git-a80951bdb0d75c2d7f81a7cd2fda31f7f02d045b.tar.gz |
blackening
Diffstat (limited to 'pyparsing/helpers.py')
-rw-r--r-- | pyparsing/helpers.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pyparsing/helpers.py b/pyparsing/helpers.py index 505f7bc..2d112de 100644 --- a/pyparsing/helpers.py +++ b/pyparsing/helpers.py @@ -224,7 +224,10 @@ def one_of( asKeyword = asKeyword or as_keyword useRegex = useRegex and use_regex - if isinstance(caseless, str_type) and __diag__.warn_on_multiple_string_args_to_oneof: + if ( + isinstance(caseless, str_type) + and __diag__.warn_on_multiple_string_args_to_oneof + ): warnings.warn( "More than one string argument passed to one_of, pass" " choices as a list or space-delimited string", @@ -652,9 +655,9 @@ any_open_tag, any_close_tag = make_html_tags( ) _htmlEntityMap = {k.rstrip(";"): v for k, v in html.entities.html5.items()} -common_html_entity = Regex( - "&(?P<entity>" + "|".join(_htmlEntityMap) + ");" -).set_name("common HTML entity") +common_html_entity = Regex("&(?P<entity>" + "|".join(_htmlEntityMap) + ");").set_name( + "common HTML entity" +) def replace_html_entity(t): |