Skip to content

Commit

Permalink
Replace f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
bamos committed Nov 2, 2019
1 parent 4031dd0 commit 6ad2632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def adjoint_derivative(dx=None, dy=None, dz=None,
# but use slack variables too
raise NotImplementedError
else:
raise RuntimeError(f"Unrecognized differentiation mode: {diff_mode}")
raise RuntimeError("Unrecognized differentiation mode: {}".format(diff_mode))

# Extract derivatives
rows, cols = P_idx
Expand Down

0 comments on commit 6ad2632

Please sign in to comment.