diff options
author | ptmcg <ptmcg@austin.rr.com> | 2022-06-16 07:39:35 -0500 |
---|---|---|
committer | ptmcg <ptmcg@austin.rr.com> | 2022-06-16 07:39:35 -0500 |
commit | 6dcf9aad746d0f3ca873fa1c023f36819bf0b6df (patch) | |
tree | bfede886d757be277118fb8bcfa6fc887b93e87b /pyparsing/helpers.py | |
parent | 9c39a15cb42486bbbee828268d80cef3fe362df3 (diff) | |
download | pyparsing-git-6dcf9aad746d0f3ca873fa1c023f36819bf0b6df.tar.gz |
Clean up docstrings to use new PEP8 names instead of old camelCase names
Diffstat (limited to 'pyparsing/helpers.py')
-rw-r--r-- | pyparsing/helpers.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyparsing/helpers.py b/pyparsing/helpers.py index 4663177..1b48cfc 100644 --- a/pyparsing/helpers.py +++ b/pyparsing/helpers.py @@ -226,7 +226,7 @@ def one_of( - ``caseless`` - treat all literals as caseless - (default= ``False``) - ``use_regex`` - as an optimization, will generate a :class:`Regex` object; otherwise, will generate - a :class:`MatchFirst` object (if ``caseless=True`` or ``asKeyword=True``, or if + a :class:`MatchFirst` object (if ``caseless=True`` or ``as_keyword=True``, or if creating a :class:`Regex` raises an exception) - (default= ``True``) - ``as_keyword`` - enforce :class:`Keyword`-style matching on the generated expressions - (default= ``False``) @@ -445,12 +445,12 @@ def locatedExpr(expr: ParserElement) -> ParserElement: - ``value`` - the actual parsed results Be careful if the input text contains ``<TAB>`` characters, you - may want to call :class:`ParserElement.parseWithTabs` + may want to call :class:`ParserElement.parse_with_tabs` Example:: wd = Word(alphas) - for match in locatedExpr(wd).searchString("ljsdf123lksdjjf123lkkjj1222"): + for match in locatedExpr(wd).search_string("ljsdf123lksdjjf123lkkjj1222"): print(match) prints:: |