Ticket #290: resolver.py.diff

File resolver.py.diff, 760 bytes (added by userblin@…, 20 months ago)

A patch which can correct a problem.

  • (a) HEAD vs. (b) Modified

    # This patch file was generated by NetBeans IDE
    # It uses platform neutral UTF-8 encoding and \n newlines.
    a b  
    140140    def resolve(self, kind, value, implicit): 
    141141        if kind is ScalarNode and implicit[0]: 
    142142            if value == '': 
    143                 resolvers = self.yaml_implicit_resolvers.get('', []) 
     143                resolvers = self.yaml_implicit_resolvers.get('', [])[:] 
    144144            else: 
    145                 resolvers = self.yaml_implicit_resolvers.get(value[0], []) 
     145                resolvers = self.yaml_implicit_resolvers.get(value[0], [])[:] 
    146146            resolvers += self.yaml_implicit_resolvers.get(None, []) 
    147147            for tag, regexp in resolvers: 
    148148                if regexp.match(value):