Skip to content

Commit 03a7c3f

Browse files
author
Ansgar Schmidt
committed
Supporting native str when parsing args
Signed-off-by: Ansgar Schmidt <ansgar.schmidt@orbitalsystems.de>
1 parent 2b9f725 commit 03a7c3f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

yamcs-client/src/yamcs/client/core/helpers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ def to_named_object_ids(
190190
def to_argument_value(value, force_string):
191191
if isinstance(value, (bytes, bytearray)):
192192
return binascii.hexlify(value).decode("ascii")
193+
elif isinstance(value, str):
194+
return value
193195
elif isinstance(value, collections.abc.Mapping):
194196
# Careful to do the JSON dump only at the end,
195197
# and not at every level of a nested hierarchy

0 commit comments

Comments
 (0)