Skip to content

Commit

Permalink
Comment to indicate difference, since some code is repeated
Browse files Browse the repository at this point in the history
  • Loading branch information
eriknw committed Oct 25, 2024
1 parent 51280c0 commit b590224
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def __getitem__(self, key):
key = self._key_to_pred[key]
val = self._data[key]
for key in reversed(stack):
val = self._data[key] = [*val, key]
val = self._data[key] = [*val, key] # Switched in ReversePathMapping
return val

def __iter__(self):
Expand Down Expand Up @@ -251,7 +251,7 @@ def __getitem__(self, key):
key = self._key_to_pred[key]
val = self._data[key]
for key in reversed(stack):
val = self._data[key] = [key, *val]
val = self._data[key] = [key, *val] # Switched in PathMapping
return val

def __iter__(self):
Expand Down

0 comments on commit b590224

Please sign in to comment.