summaryrefslogtreecommitdiff
path: root/reader.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2016-09-05 09:26:11 +0200
committerAnthon van der Neut <anthon@mnt.org>2016-09-05 09:26:11 +0200
commitd044a672cb2824c47041c71ea53d56482517375e (patch)
tree11cae255b70cddc5a3cc44f3fb34aaf30dd8d469 /reader.py
parentba6758cdb4dcee9d0536646b414f42ee5de4fa4e (diff)
downloadruamel.yaml-d044a672cb2824c47041c71ea53d56482517375e.tar.gz
ignore full range of specified characters0.12.8
Fix for issue #55, incorporating pull request #11 both by Harguroicha Hsu
Diffstat (limited to 'reader.py')
-rw-r--r--reader.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/reader.py b/reader.py
index 1257f52..fe6f505 100644
--- a/reader.py
+++ b/reader.py
@@ -145,7 +145,12 @@ class Reader(object):
self.update(1)
NON_PRINTABLE = re.compile(
- u'[^\x09\x0A\x0D\x20-\x7E\x85\xA0-\uD7FF\uE000-\uFFFD\U00010000-\U0010FFFF]')
+ u'[^\x09\x0A\x0D\x20-\x7E\x85'
+ u'\xA0-\uD7FF'
+ u'\uE000-\uFFFD'
+ u'\U00010000-\U0010FFFF'
+ u']'
+ )
def check_printable(self, data):
match = self.NON_PRINTABLE.search(data)