diff options
-rw-r--r-- | __init__.py | 2 | ||||
-rw-r--r-- | scanner.py | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/__init__.py b/__init__.py index 3085993..9a8d456 100644 --- a/__init__.py +++ b/__init__.py @@ -9,7 +9,7 @@ from __future__ import absolute_import _package_data = dict( full_package_name="ruamel.yaml", - version_info=(0, 12, 11), + version_info=(0, 12, 12), author="Anthon van der Neut", author_email="a.van.der.neut@ruamel.eu", description="ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order", # NOQA @@ -1653,9 +1653,8 @@ class RoundTripScanner(Scanner): while ch: ch = self.scan_line_break(empty_line=True) comment += ch - if self.peek() == '#': # empty line followed by indented real cmment + if self.peek() == '#': # empty line followed by indented real comment comment = comment.rsplit('\n', 1)[0] + '\n' - print('comment', repr(comment), self.peek() == '#') end_mark = self.get_mark() return comment, start_mark, end_mark else: |