[Notes] [Git][BuildStream/buildstream][master] 2 commits: buildstream/_yaml.py: Import Mapping from collections.abc



Title: GitLab

Jürg Billeter pushed to branch master at BuildStream / buildstream

Commits:

1 changed file:

Changes:

  • buildstream/_yaml.py
    ... ... @@ -940,7 +940,7 @@ def node_sanitize(node):
    940 940
             return [node_sanitize(elt) for elt in node]
    
    941 941
     
    
    942 942
         # Finally ChainMap and dict, and other Mappings need special handling
    
    943
    -    if node_type in (dict, ChainMap) or isinstance(node, collections.Mapping):
    
    943
    +    if node_type in (dict, ChainMap) or isinstance(node, collections.abc.Mapping):
    
    944 944
             result = SanitizedDict()
    
    945 945
     
    
    946 946
             key_list = [key for key, _ in node_items(node)]
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]