Skip to content

Commit 5fb5ef2

Browse files
committed
Fix dictionary merging in SCMInfo
Replaced the bitwise OR operator with the update method for merging dictionaries for 3.8 support
1 parent b91224e commit 5fb5ef2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bumpversion/scm.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ def latest_tag_info(cls, tag_name: str, parse_pattern: str) -> SCMInfo:
273273

274274
commit_info = cls._commit_info(parse_pattern, tag_name)
275275
rev_info = cls._revision_info()
276-
info |= commit_info
277-
info |= rev_info
276+
info.update(commit_info)
277+
info.update(rev_info)
278278

279279
return SCMInfo(**info)
280280

0 commit comments

Comments
 (0)