Skip to content

Commit

Permalink
cmds_events_doc.py
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-usielski committed Jan 23, 2024
1 parent 0ba445d commit 492c49e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions moler/util/cmds_events_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,18 +199,6 @@ def _reformat_str_to_unicode(cmd_result):
return cmd_result


def _convert_str_to_unicode(input):
if isinstance(input, dict):
return {_convert_str_to_unicode(key): _convert_str_to_unicode(value) for key, value in input.items()}
elif isinstance(input, list):
return [_convert_str_to_unicode(element) for element in input]
elif isinstance(input, str):
# noinspection PyUnresolvedReferences
return input.decode('utf-8') # Python 2.7
else:
return input


def _run_command_parsing_test(moler_cmd, creation_str, buffer_io, cmd_output, cmd_result, variant, base_class,
observer_type):
with buffer_io: # open it (autoclose by context-mngr)
Expand Down

0 comments on commit 492c49e

Please sign in to comment.