Skip to content

Commit

Permalink
Avoid f-string for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
levitsky committed Jul 14, 2024
1 parent 669897d commit 67cee99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyteomics/mass/mass.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ def _parse_isotope_string(label):


def _raise_term_label_exception(what='comp'):
raise PyteomicsError(f"Cannot use a mod label as a terminal group. Provide correct group {what}"
f" in `aa_{what}`.")
raise PyteomicsError("Cannot use a mod label as a terminal group. Provide correct group {0}"
" in `aa_{0}`.".format(what))


class Composition(BasicComposition):
Expand Down

0 comments on commit 67cee99

Please sign in to comment.