Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistently name UUID variable #551

Merged
merged 1 commit into from
Dec 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pottery/bloom.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ def __bit_offsets_many(self,
except TypeError:
# value can't be encoded / converted to JSON. Do a membership
# test for a UUID in place of value.
uuid_ = str(uuid.uuid4())
yield from self._bit_offsets(uuid_)
uuid4 = str(uuid.uuid4())
yield from self._bit_offsets(uuid4)

def _num_bits_set(self) -> int:
'''The number of bits set to 1 in this Bloom filter. O(m)
Expand Down