Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions labscript_devices/FunctionRunner/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def deserialise_function(
"""Deserialise a function that was serialised by serialise_function. Optional
__name__ and __file__ arguments set those attributes in the namespace that the
function will be defined."""
if isinstance(name, bytes):
name = name.decode('utf8')
args = deserialise(args)
kwargs = deserialise(kwargs)
code = compile(source, '<string>', 'exec', dont_inherit=True,)
Expand Down