summaryrefslogtreecommitdiff
path: root/pyparsing/helpers.py
diff options
context:
space:
mode:
authorptmcg <ptmcg@austin.rr.com>2021-10-24 09:28:29 -0500
committerptmcg <ptmcg@austin.rr.com>2021-10-24 09:28:29 -0500
commita80951bdb0d75c2d7f81a7cd2fda31f7f02d045b (patch)
treef046e44b25c46b0a9324cca25bea4e7f1c29df8e /pyparsing/helpers.py
parent5d6c14a959d1eb3f7c178c10fba34326058a2166 (diff)
downloadpyparsing-git-a80951bdb0d75c2d7f81a7cd2fda31f7f02d045b.tar.gz
blackening
Diffstat (limited to 'pyparsing/helpers.py')
-rw-r--r--pyparsing/helpers.py11
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):