Skip to content

Commit

Permalink
Merge #75
Browse files Browse the repository at this point in the history
75: Automated pull from `ferrocene/specification` r=tshepang a=github-actions[bot]

This PR pulls the following changes from the [`ferrocene/specification`](https://github.com/ferrocene/specification) repository:

* ferrocene/specification#456


Co-authored-by: Matthew Woodcraft <matthew@woodcraft.me.uk>
Co-authored-by: bors-ferrocene[bot] <87868125+bors-ferrocene[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Oct 31, 2023
2 parents fb14662 + 242959a commit 688f839
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -40,11 +40,7 @@ class RubricCollector(EnvironmentCollector):
def clear_doc(self, app, env, docname):
storage = get_storage(env)
for rubric, items in storage.items():
# This makes a copy of the list (with `list(items)`) to be able to
# remove items from it without affecting the iteration.
for i, item in enumerate(list(items)):
if item.document == docname:
items.pop(i)
items[:] = (item for item in items if item.document != docname)

def merge_other(self, app, env, docnames, other):
current = get_storage(env)
Expand Down

0 comments on commit 688f839

Please sign in to comment.