Commit 7991a665 authored by oroulet's avatar oroulet Committed by Christian Bergmiller

cherry pick/merge f82f0440

parent f7aaa254
......@@ -79,15 +79,13 @@ class _FrozenClass(object):
object.__setattr__(self, key, value)
if 'PYOPCUA_NO_TYPO_CHECK' in os.environ:
if "PYOPCUA_TYPO_CHECK" in os.environ:
# typo check is cpu consuming, but it will make debug easy.
# if typo check is not need (in production), please set env PYOPCUA_NO_TYPO_CHECK.
# this will make all uatype class inherit from object instead of _FrozenClass
# and skip the typo check.
FrozenClass = object
else:
# set PYOPCUA_TYPO_CHECK will make all uatype classes inherit from _FrozenClass
logger.warning('uaypes typo checking is active')
FrozenClass = _FrozenClass
else:
FrozenClass = object
class ValueRank(IntEnum):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment