summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorptmcg <ptmcg@austin.rr.com>2020-12-24 00:32:44 -0600
committerptmcg <ptmcg@austin.rr.com>2020-12-24 00:32:44 -0600
commitc3be8acb355559cc1fdcb673f8df904b6947b0af (patch)
tree173af0654642dab7ad2bc7669f2dd451f3bea69f
parentd7fc7e5499276427a4ce2758b3d0a23747d50ce9 (diff)
downloadpyparsing-git-c3be8acb355559cc1fdcb673f8df904b6947b0af.tar.gz
Hide internal null_values list in ParseResults class
-rw-r--r--pyparsing/results.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyparsing/results.py b/pyparsing/results.py
index 300ef92..46c9f20 100644
--- a/pyparsing/results.py
+++ b/pyparsing/results.py
@@ -69,7 +69,7 @@ class ParseResults:
- month: 12
- year: 1999
"""
- null_values = (None, b"", "", [], ())
+ _null_values = (None, b"", "", [], ())
__slots__ = [
"_name",
@@ -161,7 +161,7 @@ class ParseResults:
if not modal:
self._all_names = {name}
self._name = name
- if toklist not in self.null_values:
+ if toklist not in self._null_values:
if isinstance(toklist, str_type):
toklist = [toklist]
if asList: