(self, node, deep=False)
return mapping
Function to allow retrieving the line of the duplicated metric.\n
        It adds the key "__line__" with the value of the line it is to every key in the mapping created by yaml.load
Function to allow retrieving the line of the duplicated metric.\n
        It adds the key "__line__" with the value of the line it is to every key in the mapping created by yaml.load
Function to allow retrieving the line of the duplicated metric . \ n It adds the key __line__ with the value of the line it is to every key in the mapping created by yaml . load
def construct_mapping(self, node, deep=False):
        """
        Function to allow retrieving the line of the duplicated metric.\n
        It adds the key "__line__" with the value of the line it is to every key in the mapping created by yaml.load
        """
        mapping = super(SafeLineLoader, self).construct_mapping(node, deep=deep)
        # Add 1 so line numbering starts at 1
        mapping['__line__'] = node.start_mark.line + 1
        return mapping
def construct_mapping ( self , node , deep = False ) : mapping = super ( SafeLineLoader , self ) . construct_mapping ( node , deep = deep ) # Add 1 so line numbering starts at 1 mapping [ '__line__' ] = node . start_mark . line + 1 return mapping