Skip to content

Commit

Permalink
Remove f-strings for Py2.7 and 3.5 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebecca Turner committed Jul 12, 2021
1 parent bc540b5 commit a85ab29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/attr/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,4 @@ def to_bool(val):
except TypeError:
# Raised when "val" is not hashable (e.g., lists)
pass
raise ValueError(f"Cannot convert value to bool: {val}")
raise ValueError("Cannot convert value to bool: {}".format(val))

0 comments on commit a85ab29

Please sign in to comment.