diff options
author | ptmcg <ptmcg@austin.rr.com> | 2021-04-13 03:02:42 -0500 |
---|---|---|
committer | ptmcg <ptmcg@austin.rr.com> | 2021-04-13 03:02:59 -0500 |
commit | 9e8ad930fefc3611e4c70ba612af7fd6b974fb85 (patch) | |
tree | 54fef776df4cdbfa1cc2c7bdb871bc0e08863e45 | |
parent | 6e9b4c9e88534d9df673e67d13cfb06529d02ca0 (diff) | |
download | pyparsing-git-9e8ad930fefc3611e4c70ba612af7fd6b974fb85.tar.gz |
#271 - remove comparison with bytes in ParseResults._null_values
-rw-r--r-- | CHANGES | 7 | ||||
-rw-r--r-- | pyparsing/results.py | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -2,6 +2,13 @@ Change Log ========== +Version 3.0.0c1 - April, 2021 +----------------------------- +- Removed internal comparison of results values against b"", which + raised a BytesWarning when run with `python -bb`. Fixes issue reported + by Florian Bruhin, thank you! + + Version 3.0.0b2 - December, 2020 -------------------------------- - API CHANGE diff --git a/pyparsing/results.py b/pyparsing/results.py index 46c9f20..fb03ecd 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, "", [], ()) __slots__ = [ "_name", |