8000 MNT : simplify repr · danielballan/matplotlib@a0c387a · GitHub
[go: up one dir, main page]

Skip to content

Commit a0c387a

Browse files
committed
MNT : simplify repr
1 parent 105fcd6 commit a0c387a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/cycler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def __imul__(self, other):
137137
def __repr__(self):
138138
op_map = {zip: '+', product: '*'}
139139
if self._right is None:
140-
lab = list(self.keys)[0]
140+
lab = self.keys.pop()
141141
itr = list(v[lab] for v in self.finite_iter())
142142
return "cycler({lab!r}, {itr!r})".format(lab=lab, itr=itr)
143143
else:

0 commit comments

Comments
 (0)
0