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()
|
server_conn = tserver_conn()
|
||||||
if messages is True:
|
if messages is True:
|
||||||
messages = [
|
messages = [
|
||||||
tcp.TCPMessage(True, b"hello"),
|
tcp.TCPMessage(True, b"hello", 946681204.2),
|
||||||
tcp.TCPMessage(False, b"it's me"),
|
tcp.TCPMessage(False, b"it's me", 946681204.5),
|
||||||
]
|
]
|
||||||
if err is True:
|
if err is True:
|
||||||
err = terr()
|
err = terr()
|
||||||
|
@ -45,10 +45,10 @@ def debug2(*_):
|
|||||||
print("Flow References")
|
print("Flow References")
|
||||||
print("=======")
|
print("=======")
|
||||||
|
|
||||||
#gc.collect()
|
# gc.collect()
|
||||||
|
|
||||||
objs = tuple(gc.get_objects())
|
objs = tuple(gc.get_objects())
|
||||||
ignore = {id(objs)}
|
ignore = {id(objs)} # noqa
|
||||||
flows = 0
|
flows = 0
|
||||||
for i in range(len(objs)):
|
for i in range(len(objs)):
|
||||||
try:
|
try:
|
||||||
@ -57,8 +57,8 @@ def debug2(*_):
|
|||||||
continue
|
continue
|
||||||
if is_flow:
|
if is_flow:
|
||||||
flows += 1
|
flows += 1
|
||||||
#print_refs(objs[i], ignore, set())
|
# print_refs(objs[i], ignore, set())
|
||||||
#break
|
# break
|
||||||
del objs
|
del objs
|
||||||
|
|
||||||
print(f"{flows} flows found.")
|
print(f"{flows} flows found.")
|
||||||
|
@ -191,7 +191,7 @@ export function TTCPFlow(): Required<TCPFlow> {
|
|||||||
"messages_meta": {
|
"messages_meta": {
|
||||||
"contentLength": 12,
|
"contentLength": 12,
|
||||||
"count": 2,
|
"count": 2,
|
||||||
"timestamp_last": 1629806221.58518
|
"timestamp_last": 946681204.5
|
||||||
},
|
},
|
||||||
"modified": false,
|
"modified": false,
|
||||||
"server_conn": {
|
"server_conn": {
|
||||||
|
Loading…
Reference in New Issue
Block a user