Jürg Billeter pushed to branch chandan/fix-mapping-import at BuildStream / buildstream
Commits:
-
00b86b19
by Chandan Singh at 2019-02-18T18:59:31Z
-
067a0c6b
by Chandan Singh at 2019-02-18T20:31:10Z
-
fca37d0d
by Chandan Singh at 2019-02-19T06:37:04Z
2 changed files:
Changes:
... | ... | @@ -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)]
|
... | ... | @@ -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
|