mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-22 00:33:44 +08:00
Params: python-like interface (#20506)
* rebase master * delete outdated test_params.c * putBool & more robust getBool * putBool(SshEnabled) old-commit-hash: 98e55996f67aaaf715c941d417ae4d3b0187f388
This commit is contained in:
@@ -157,11 +157,11 @@ cdef class Params:
|
||||
if key not in keys:
|
||||
raise UnknownKeyName(key)
|
||||
|
||||
self.p.write_db_value(key, dat)
|
||||
self.p.put(key, dat)
|
||||
|
||||
def delete(self, key):
|
||||
key = ensure_bytes(key)
|
||||
self.p.delete_db_value(key)
|
||||
self.p.remove(key)
|
||||
|
||||
|
||||
def put_nonblocking(key, val, d=None):
|
||||
|
||||
Reference in New Issue
Block a user