Skip to content
Snippets Groups Projects
Commit 60a3d7c6 authored by Christoph Groth's avatar Christoph Groth
Browse files

remove notice about possible optimization that is not worth it (I tried)

parent 7c55b0cb
No related branches found
No related tags found
No related merge requests found
......@@ -881,9 +881,6 @@ class Builder:
def __setitem__(self, key, value):
"""Set a single site/hopping or a bunch of them."""
# TODO: Once we can take Python 3 for granted, get rid of the if-clause
# inside the loop by defining a special func that rebinds itself upon
# the first call.
func = None
for sh in self.expand(key):
if func is None:
......@@ -927,9 +924,6 @@ class Builder:
def __delitem__(self, key):
"""Delete a single site/hopping or bunch of them."""
# TODO: Once we can take Python 3 for granted, get rid of the if-clause
# inside the loop by defining a special func that rebinds itself upon
# the first call.
func = None
for sh in self.expand(key):
if func is None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment