-
Notifications
You must be signed in to change notification settings - Fork 277
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
Kind delimiter #844
Kind delimiter #844
Conversation
…lting in a key error
@@ -226,8 +227,8 @@ def get_kind_key(self, prefix, key_path): | |||
# are of set size i.e. 2 > 0003 but 0002 < 0003 | |||
key_id = str(e.id()).zfill(ID_KEY_LENGTH) | |||
path.append("{0}:{1}".format(e.type(), key_id)) | |||
encoded_path = '!'.join(path) | |||
encoded_path += '!' | |||
encoded_path = '\x01'.join(path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use _KIND_SEPARATOR
here, and anywhere else that \x01
is present.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll pull the _KIND_SEPARATOR out to dbconstants, since it spans beyond the one class (hence the reason I didn't use it here, it was out of scope).
No description provided.