Skip to content

Commit 92eca45

Browse files
changed formatting with named placeholders
1 parent 01b247a commit 92eca45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cycler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,10 @@ def change_key(self, old, new):
185185
if old == new:
186186
return
187187
if new in self._keys:
188-
raise ValueError("Can't replace {} with {}, {} is already a key"
188+
raise ValueError("Can't replace {old} with {new}, {new} is already a key"
189189
.format(old, new, new))
190190
if old not in self._keys:
191-
raise KeyError("Can't replace {} with {}, {} is not a key"
191+
raise KeyError("Can't replace {old} with {new}, {old} is not a key"
192192
.format(old, new, old))
193193

194194
self._keys.remove(old)

0 commit comments

Comments
 (0)