Skip to content

Commit 273e90a

Browse files
Christopher Friedtstephanosio
authored andcommitted
scripts: release: list_backports: use older python dict merge method
In Python versions >= 3.9, dicts can be merged with the `|` operator. This is not the case for python versions < 3.9, and the simplest way is to use `dict_c = {**dict_a, **dict_b}`. Signed-off-by: Christopher Friedt <[email protected]> (cherry picked from commit 3783cf8)
1 parent 59dc65a commit 273e90a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/release/list_backports.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,8 @@ def get_issues(self):
254254
self._pulls_without_an_issue.append(p)
255255
continue
256256

257-
issue_map = issue_map | issues_for_this_pr
257+
# FIXME: when we have upgrade to python3.9+, use "issue_map | issues_for_this_pr"
258+
issue_map = {**issue_map, **issues_for_this_pr}
258259

259260
issues = list(issue_map.values())
260261

0 commit comments

Comments
 (0)