Fix issue with representing Enum types

This commit is contained in:
Thom Smith 2021-09-22 11:51:14 -04:00 committed by Ingy döt Net
parent 141afddd45
commit 961ce9dcf5
4 changed files with 6 additions and 2 deletions

View file

@ -369,7 +369,7 @@ Representer.add_representer(complex,
Representer.add_representer(tuple,
Representer.represent_tuple)
Representer.add_representer(type,
Representer.add_multi_representer(type,
Representer.represent_name)
Representer.add_representer(collections.OrderedDict,

View file

@ -1 +1 @@
[str, yaml.Loader, yaml.dump, abs, yaml.tokens]
[str, yaml.Loader, yaml.dump, abs, yaml.tokens, signal.Handlers]

View file

@ -3,3 +3,4 @@
- !!python/name:yaml.dump
- !!python/name:abs
- !!python/module:yaml.tokens
- !!python/name:signal.Handlers

View file

@ -5,6 +5,9 @@ import pprint
import datetime
import yaml.tokens
# Import any packages here that need to be referenced in .code files.
import signal
def execute(code):
global value
exec(code)