diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-08-01 09:46:38 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-08-01 09:46:38 +0200 |
commit | b4014d12517af93a860e73c1f85d79b5b31068e1 (patch) | |
tree | c7057c22e1968d50b7a940cb1db92f76c41b59e2 /comments.py | |
parent | 6ab2708766cd4f1d604fc7c1973afa2b7ff24301 (diff) | |
download | ruamel.yaml-b4014d12517af93a860e73c1f85d79b5b31068e1.tar.gz |
flake8-bugbear
Diffstat (limited to 'comments.py')
-rw-r--r-- | comments.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/comments.py b/comments.py index 98c80c7..16fbbb8 100644 --- a/comments.py +++ b/comments.py @@ -423,7 +423,7 @@ class CommentedSeq(list, CommentedBase): sel_idx = post else: # self.ca.items is not ordered - for row_idx, k1 in enumerate(self): + for row_idx, _k1 in enumerate(self): if row_idx >= key: break if row_idx not in self.ca.items: @@ -490,7 +490,7 @@ class CommentedKeySeq(tuple, CommentedBase): sel_idx = post else: # self.ca.items is not ordered - for row_idx, k1 in enumerate(self): + for row_idx, _k1 in enumerate(self): if row_idx >= key: break if row_idx not in self.ca.items: @@ -637,7 +637,7 @@ class CommentedMap(ordereddict, CommentedBase): sel_idx = post else: # self.ca.items is not ordered - for row_idx, k1 in enumerate(self): + for k1 in self: if k1 >= key: break if k1 not in self.ca.items: |