Skip to content

Commit

Permalink
depgraph: Fix SyntaxWarning: 'str' object is not callable
Browse files Browse the repository at this point in the history
Fixes: a5078e5 ("emerge: backtrack consistently regardless of --fetchonly")
Signed-off-by: Zac Medico <zmedico@gentoo.org>
  • Loading branch information
zmedico committed Jan 17, 2024
1 parent a5078e5 commit da5b18a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/_emerge/depgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -3794,7 +3794,8 @@ def _eliminate_rebuilds(self):
except KeyError:
optional_msg = " ({} previously removed from graph)"
warnings.warn(
f"_eliminate_rebuilds inconsistency: parent priorities missing for {parent} -> {pkg} edge"(
f"_eliminate_rebuilds inconsistency: parent priorities missing for {parent} -> {pkg} edge"
+ (
optional_msg.format("parent and child")
if parent in removed and pkg in removed
else optional_msg.format("parent")
Expand All @@ -3815,7 +3816,8 @@ def _eliminate_rebuilds(self):
except KeyError:
optional_msg = " ({} previously removed from graph)"
warnings.warn(
f"_eliminate_rebuilds inconsistency: parent priorities missing for {pkg} -> {child} edge"(
f"_eliminate_rebuilds inconsistency: parent priorities missing for {pkg} -> {child} edge"
+ (
optional_msg.format("parent and child")
if pkg in removed and child in removed
else optional_msg.format("parent")
Expand Down

0 comments on commit da5b18a

Please sign in to comment.