mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 07:08:10 +00:00
make flake8 happy
This commit is contained in:
parent
75ccd44c42
commit
0437d2935e
@ -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()
|
||||
|
@ -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.")
|
||||
|
@ -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": {
|
||||
|
Loading…
Reference in New Issue
Block a user