[Notes] [Git][BuildStream/buildstream][chandan/fix-mapping-import] 3 commits: doc/badges.py: Fix catching of CalledProcessError



Title: GitLab

Jürg Billeter pushed to branch chandan/fix-mapping-import at BuildStream / buildstream

Commits:

2 changed files:

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)]
    

  • doc/badges.py
    ... ... @@ -96,7 +96,7 @@ def parse_tag(tag):
    96 96
     def guess_version(release):
    
    97 97
         try:
    
    98 98
             tags_output = subprocess.check_output(['git', 'tag'])
    
    99
    -    except CalledProcessError:
    
    99
    +    except subprocess.CalledProcessError:
    
    100 100
             return (0, 0, 0)
    
    101 101
     
    
    102 102
         # Parse the `git tag` output into a list of integer tuples
    



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