yamole.py
def merge(self, a, b, path=None):
        """Merge a dict into another. Both may have nested dicts in them.

        The destination dict is modified.

        Args:
            a: Destination dict, which will contain all the keys.
            b: Source dict, which will be merged into "a".

        Returns
            The destination dict, now including the contents of "b".
        """
        if path is None:
            path = []
        for key in b:
            if key in a:
                if isinstance(a[key], dict) and isinstance(b[key], dict):
                    if key == 'example' and self.openapi_mode:
                        a[key] = b[key]
                    else:
                        self.merge(a[key], b[key], path + [str(key)])
                elif isinstance(a[key], list) and isinstance(b[key], list):
                    a[key] += b[key]
                elif a[key] == b[key]:
                    pass
                else:
                    raise RuntimeError('Conflict at {}'
                                       .format('.'.join(path + [str(key)])))
            else:
                a[key] = b[key]
        return a
Merge a dict into another. Both may have nested dicts in them.

        The destination dict is modified.

        Args:
            a: Destination dict, which will contain all the keys.
            b: Source dict, which will be merged into "a".

        Returns
            The destination dict, now including the contents of "b".
        
Merge a dict into another. Both may have nested dicts in them.
The destination dict is modified.
Merge a dict into another . Both may have nested dicts in them . The destination dict is modified .
def merge(self, a, b, path=None):
        if path is None:
            path = []
        for key in b:
            if key in a:
                if isinstance(a[key], dict) and isinstance(b[key], dict):
                    if key == 'example' and self.openapi_mode:
                        a[key] = b[key]
                    else:
                        self.merge(a[key], b[key], path + [str(key)])
                elif isinstance(a[key], list) and isinstance(b[key], list):
                    a[key] += b[key]
                elif a[key] == b[key]:
                    pass
                else:
                    raise RuntimeError('Conflict at {}'
                                       .format('.'.join(path + [str(key)])))
            else:
                a[key] = b[key]
        return a
def merge ( self , a , b , path = None ) : if path is None : path = [ ] for key in b : if key in a : if isinstance ( a [ key ] , dict ) and isinstance ( b [ key ] , dict ) : if key == 'example' and self . openapi_mode : a [ key ] = b [ key ] else : self . merge ( a [ key ] , b [ key ] , path + [ str ( key ) ] ) elif isinstance ( a [ key ] , list ) and isinstance ( b [ key ] , list ) : a [ key ] += b [ key ] elif a [ key ] == b [ key ] : pass else : raise RuntimeError ( 'Conflict at {}' . format ( '.' . join ( path + [ str ( key ) ] ) ) ) else : a [ key ] = b [ key ] return a
Merge a dict into another.
Merge a dict into another .
"""Merge a dict into another. Both may have nested dicts in them.

        The destination dict is modified.

        Args:
            a: Destination dict, which will contain all the keys.
            b: Source dict, which will be merged into "a".

        Returns
            The destination dict, now including the contents of "b".
        """
self
a
Destination dict, which will contain all the keys.
Destination dict which will contain all the keys .
b
Source dict, which will be merged into "a".
Source dict which will be merged into " a " .
path