summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorptmcg <ptmcg@austin.rr.com>2021-04-13 03:02:42 -0500
committerptmcg <ptmcg@austin.rr.com>2021-04-13 03:02:59 -0500
commit9e8ad930fefc3611e4c70ba612af7fd6b974fb85 (patch)
tree54fef776df4cdbfa1cc2c7bdb871bc0e08863e45
parent6e9b4c9e88534d9df673e67d13cfb06529d02ca0 (diff)
downloadpyparsing-git-9e8ad930fefc3611e4c70ba612af7fd6b974fb85.tar.gz
#271 - remove comparison with bytes in ParseResults._null_values
-rw-r--r--CHANGES7
-rw-r--r--pyparsing/results.py2
2 files changed, 8 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index e89e580..77cc433 100644
--- a/CHANGES
+++ b/CHANGES
@@ -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",