summaryrefslogtreecommitdiff
path: root/scanner.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2019-08-16 07:24:14 +0200
committerAnthon van der Neut <anthon@mnt.org>2019-08-16 07:24:14 +0200
commit253509a0afc997ab1fc027fc9344aea30dc7632b (patch)
tree3292b0d2d7a69aef781795002429fd4b59a383b5 /scanner.py
parent37703e0ceb151d4a96b434626b4851ffe1250bb2 (diff)
downloadruamel.yaml-253509a0afc997ab1fc027fc9344aea30dc7632b.tar.gz
output of # in TAG directive0.16.4
fixes issue #307 *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 'scanner.py')
-rw-r--r--scanner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scanner.py b/scanner.py
index 885bf22..df85ae0 100644
--- a/scanner.py
+++ b/scanner.py
@@ -1677,7 +1677,7 @@ class Scanner(object):
or 'A' <= ch <= 'Z'
or 'a' <= ch <= 'z'
or ch in "-;/?:@&=+$,_.!~*'()[]%"
- or ((self.scanner_processing_version > (1, 1)) and ch == "#")
+ or ((self.scanner_processing_version > (1, 1)) and ch == '#')
):
if ch == '%':
chunks.append(self.reader.prefix(length))