diff options
author | Anthon van der Neut <anthon@mnt.org> | 2019-04-21 17:48:15 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2019-04-21 17:48:15 +0200 |
commit | de8f65450fa85ab4e59afa91df669e05753d5b93 (patch) | |
tree | ba492894b7fb6f4a229f24ce7c0136c8af2d0e98 /constructor.py | |
parent | 6c7a0920317ab4cf34950a6bb4f8e4bc2b494632 (diff) | |
download | ruamel.yaml-de8f65450fa85ab4e59afa91df669e05753d5b93.tar.gz |
Add y/Y/n/N to boolean values under 1.10.15.93
fixes issues #285
*When this change indeed resolves your problem, please **Close** this issue*.
*(You can do so using the WorkFlow pull-down (close to the top right of this page))*
Diffstat (limited to 'constructor.py')
-rw-r--r-- | constructor.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/constructor.py b/constructor.py index 4e76f18..ee605ea 100644 --- a/constructor.py +++ b/constructor.py @@ -438,6 +438,8 @@ class SafeConstructor(BaseConstructor): bool_values = { u'yes': True, u'no': False, + u'y': True, + u'n': False, u'true': True, u'false': False, u'on': True, |