@@ -412,11 +412,17 @@ async def close(self) -> None:
412
412
async def static_login (self , token : str ) -> user .User :
413
413
import logging
414
414
415
- async def on_request_start (session , context , params : aiohttp .TraceRequestStartParams ):
415
+ async def on_request_start (
416
+ session , context , params : aiohttp .TraceRequestStartParams
417
+ ):
416
418
# breakpoint()
417
- logging .getLogger ('aiohttp.client' ).debug (f'Starting request <{ params } > <{ session } > <{ context } >' )
419
+ logging .getLogger ("aiohttp.client" ).debug (
420
+ f"Starting request <{ params } > <{ session } > <{ context } >"
421
+ )
418
422
419
- async def on_request_chunk_sent (session , context , params : aiohttp .TraceRequestChunkSentParams ):
423
+ async def on_request_chunk_sent (
424
+ session , context , params : aiohttp .TraceRequestChunkSentParams
425
+ ):
420
426
with open ("output.txt" , "a" ) as file :
421
427
file .write (str (params .chunk ))
422
428
# logging.getLogger('aiohttp.client').debug(f'Sent Chunk <{params}>')
@@ -427,7 +433,9 @@ async def on_request_chunk_sent(session, context, params: aiohttp.TraceRequestCh
427
433
428
434
# Necessary to get aiohttp to stop complaining about session creation
429
435
self .__session = aiohttp .ClientSession (
430
- connector = self .connector , ws_response_class = DiscordClientWebSocketResponse , trace_configs = [trace_config ]
436
+ connector = self .connector ,
437
+ ws_response_class = DiscordClientWebSocketResponse ,
438
+ trace_configs = [trace_config ],
431
439
)
432
440
old_token = self .token
433
441
self .token = token
@@ -656,7 +664,7 @@ def edit_multipart_helper(
656
664
"filename" : file .filename ,
657
665
"description" : file .description ,
658
666
"waveform" : "37WKcJ6jlLSVnaabsbeip4KPmHJXUUEbExgFJE8J7iNPFggpKQkTNl95dobFqqe2tKubnbSTX3yLVVBFS4iqd4dbKmFvMChwfVRKfWFYWRpLaV9jlYtKWWZde6mtnYiDlGNUgmFAWWdRXGNsf2NBYnNcS1uDjm+qwK2urKe8uKqjZ2KGSjtbLUpTO0iDYSBSg6CzCk1LNDVAZnOAvNiUkLu8r8vPnFw6bXZbbXcn0vUU8q2q38Olyfb0y7OhlnV9u6N4zuAH9uI=" ,
659
- "duration_secs" : 60.0
667
+ "duration_secs" : 60.0 ,
660
668
}
661
669
)
662
670
form .append (
@@ -1292,7 +1300,7 @@ def start_forum_thread(
1292
1300
"filename" : file .filename ,
1293
1301
"description" : file .description ,
1294
1302
"waveform" : "37WKcJ6jlLSVnaabsbeip4KPmHJXUUEbExgFJE8J7iNPFggpKQkTNl95dobFqqe2tKubnbSTX3yLVVBFS4iqd4dbKmFvMChwfVRKfWFYWRpLaV9jlYtKWWZde6mtnYiDlGNUgmFAWWdRXGNsf2NBYnNcS1uDjm+qwK2urKe8uKqjZ2KGSjtbLUpTO0iDYSBSg6CzCk1LNDVAZnOAvNiUkLu8r8vPnFw6bXZbbXcn0vUU8q2q38Olyfb0y7OhlnV9u6N4zuAH9uI=" ,
1295
- "duration_secs" : 60.0
1303
+ "duration_secs" : 60.0 ,
1296
1304
}
1297
1305
)
1298
1306
form .append (
0 commit comments