make flake8 happy

This commit is contained in:
Maximilian Hils 2021-09-04 00:23:45 +02:00
parent 75ccd44c42
commit 0437d2935e
3 changed files with 7 additions and 7 deletions

View File

@ -18,8 +18,8 @@ def ttcpflow(client_conn=True, server_conn=True, messages=True, err=None) -> tcp
server_conn = tserver_conn()
if messages is True:
messages = [
tcp.TCPMessage(True, b"hello"),
tcp.TCPMessage(False, b"it's me"),
tcp.TCPMessage(True, b"hello", 946681204.2),
tcp.TCPMessage(False, b"it's me", 946681204.5),
]
if err is True:
err = terr()

View File

@ -45,10 +45,10 @@ def debug2(*_):
print("Flow References")
print("=======")
#gc.collect()
# gc.collect()
objs = tuple(gc.get_objects())
ignore = {id(objs)}
ignore = {id(objs)} # noqa
flows = 0
for i in range(len(objs)):
try:
@ -57,8 +57,8 @@ def debug2(*_):
continue
if is_flow:
flows += 1
#print_refs(objs[i], ignore, set())
#break
# print_refs(objs[i], ignore, set())
# break
del objs
print(f"{flows} flows found.")

View File

@ -191,7 +191,7 @@ export function TTCPFlow(): Required<TCPFlow> {
"messages_meta": {
"contentLength": 12,
"count": 2,
"timestamp_last": 1629806221.58518
"timestamp_last": 946681204.5
},
"modified": false,
"server_conn": {