Commit 46ab8597 authored by oroulet's avatar oroulet Committed by oroulet

remove debug code

parent 9a1824d2
......@@ -168,8 +168,7 @@ class UASocketProtocol(asyncio.Protocol):
try:
self._callbackmap[request_id].set_result(body)
except KeyError:
#raise ua.UaError(f"No request found for request id: {request_id}, pending are {self._callbackmap.keys()}, body was {body}")
pass
raise ua.UaError(f"No request found for request id: {request_id}, pending are {self._callbackmap.keys()}, body was {body}")
except asyncio.InvalidStateError:
if not self.closed:
self.logger.warning("Future for request id %s is already done", request_id)
......
......@@ -126,7 +126,6 @@ class Model(object):
def _add_struct(struct, newstructs, waiting_structs, known_structs):
print("appending", struct)
newstructs.append(struct)
known_structs.append(struct.name)
# now seeing if some struct where waiting for this one
......@@ -134,7 +133,6 @@ def _add_struct(struct, newstructs, waiting_structs, known_structs):
if waitings:
for s in waitings:
s.waitingfor.remove(struct.name)
print("TRY POP", s, s.waitingfor)
if not s.waitingfor:
_add_struct(s, newstructs, waiting_structs, known_structs)
......@@ -148,7 +146,6 @@ def reorder_structs(model):
waiting_structs = {}
newstructs = []
for s in model.structs:
print("Trying to add ", s)
s.waitingfor = []
ok = True
for f in s.fields:
......@@ -158,7 +155,6 @@ def reorder_structs(model):
else:
waiting_structs[f.uatype] = [s]
s.waitingfor.append(f.uatype)
print(s, " waiting for ", f.uatype)
ok = False
if ok:
_add_struct(s, newstructs, waiting_structs, types)
......
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