You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FIX] Prevent keys from starting with slashes (#172)
* [FIX] Prevent keys from starting with slashes
If a key starts with a slash, then it becomes undeletable and prevents database purges from working properly as well.
This prevents that from occuring by stripping slashes from the left of the key name.
* Double newlines for flake8
* flake8 wanted another newline here
* Force `set_bulk_raw` to handle keys with slashes as well
* Add tests for keys starting with a slash
* Fix a typo I made twice
* flake8
* `del self.db[k]` not `self.db.delete(k)` in non-Async
* One space for flake8
* These were also wrong
* These shouldn't be using `get`
* Match format of some of the other tests in TestDatabase
* Perhaps the key is corrupted?
* Have to `get_raw` for `_raw` calls.
* Reassociate _dumps with def dumps
* Only call keyStrip at the root of the .set function hierarchy
* Clarify that keyStrip is an internal method
---------
Co-authored-by: Devon Stewart <[email protected]>
0 commit comments