Skip to content

Commit 578a643

Browse files
authored
Merge pull request #31 from AnsgarSchmidt/to-argument-value-support-str
Supporting native str when parsing args
2 parents 2b9f725 + 03a7c3f commit 578a643

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)