MCPcopy Create free account
hub / github.com/brain-workshop/brainworkshop / try_eval

Function try_eval

brainworkshop.py:770–772  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

768 defaultconfig.readfp(StringIO.StringIO(CONFIGFILE_DEFAULT_CONTENTS))
769
770 def try_eval(text): # this is a one-use function for config parsing
771 try: return eval(text)
772 except: return text
773
774 cfg = dotdict()
775 if CLINICAL_MODE and CONFIGFILE == 'config.ini': configs = (defaultconfig,)

Callers 1

parse_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected