diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-14 16:17:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-14 16:17:58 +0000 |
commit | a04a7c41c9327144cc11ffd030c0efc2a4f85534 (patch) | |
tree | 812fe9d19c0c90324f80b838b1b1e2976a416999 /python/libknot/libknot/control.py | |
parent | Adding upstream version 3.3.5. (diff) | |
download | knot-a04a7c41c9327144cc11ffd030c0efc2a4f85534.tar.xz knot-a04a7c41c9327144cc11ffd030c0efc2a4f85534.zip |
Adding upstream version 3.3.6.upstream/3.3.6
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'python/libknot/libknot/control.py')
-rw-r--r-- | python/libknot/libknot/control.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/libknot/libknot/control.py b/python/libknot/libknot/control.py index 44aa516..659aba8 100644 --- a/python/libknot/libknot/control.py +++ b/python/libknot/libknot/control.py @@ -70,7 +70,7 @@ class KnotCtlData(object): def __setitem__(self, index: KnotCtlDataIdx, value: str) -> None: """Data unit item setter.""" - self.data[index] = ctypes.c_char_p(value.encode()) if value else ctypes.c_char_p() + self.data[index] = ctypes.c_char_p(value.encode()) if value != None else ctypes.c_char_p() class KnotCtlError(Exception): |