Skip to content

Commit 399d3e3

Browse files
removed typo
1 parent 92eca45 commit 399d3e3

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
@@ -186,10 +186,10 @@ def change_key(self, old, new):
186186
return
187187
if new in self._keys:
188188
raise ValueError("Can't replace {old} with {new}, {new} is already a key"
189-
.format(old, new, new))
189+
.format(old=old, new=new))
190190
if old not in self._keys:
191191
raise KeyError("Can't replace {old} with {new}, {old} is not a key"
192-
.format(old, new, old))
192+
.format(old=old, new=new))
193193

194194
self._keys.remove(old)
195195
self._keys.add(new)

0 commit comments

Comments
 (0)