Github user tliron commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/207#discussion_r153009548
  
    --- Diff: aria/parser/reading/yaml.py ---
    @@ -16,18 +16,30 @@
     from .reader import Reader
     from .locator import Locator
     from .exceptions import ReaderSyntaxError
    -from .locator import LocatableString, LocatableInt, LocatableFloat
    +from .locator import (LocatableString, LocatableInt, LocatableFloat)
     
    -# Add our types to ruamel.yaml
    +
    +MERGE_TAG = u'tag:yaml.org,2002:merge'
    +MAP_TAG = u'tag:yaml.org,2002:map'
    +
    +
    +# Add our types to RoundTripRepresenter
     yaml.representer.RoundTripRepresenter.add_representer(
         LocatableString, 
yaml.representer.RoundTripRepresenter.represent_unicode)
     yaml.representer.RoundTripRepresenter.add_representer(
         LocatableInt, yaml.representer.RoundTripRepresenter.represent_int)
     yaml.representer.RoundTripRepresenter.add_representer(
         LocatableFloat, yaml.representer.RoundTripRepresenter.represent_float)
     
    -MERGE_TAG = u'tag:yaml.org,2002:merge'
    -MAP_TAG = u'tag:yaml.org,2002:map'
    +
    +def construct_yaml_map(self, node):
    --- End diff --
    
    +1


---

Reply via email to