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

remove debug code

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