mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 08:14:00 +08:00
params: remove persistent params (#21975)
* cleanup constructors * remove persistent_param * remove test_persist_params_put_and_get old-commit-hash: 3b752a307f167ad536eb53cceac76f7034f2faf9
This commit is contained in:
@@ -30,11 +30,11 @@ class UnknownKeyName(Exception):
|
||||
cdef class Params:
|
||||
cdef c_Params* p
|
||||
|
||||
def __cinit__(self, d=None, bool persistent_params=False):
|
||||
def __cinit__(self, d=None):
|
||||
cdef string path
|
||||
if d is None:
|
||||
with nogil:
|
||||
self.p = new c_Params(persistent_params)
|
||||
self.p = new c_Params()
|
||||
else:
|
||||
path = <string>d.encode()
|
||||
with nogil:
|
||||
|
||||
Reference in New Issue
Block a user