Conditions | 2 |
Total Lines | 7 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | # Copyright Pincer 2021-Present |
||
22 | async def download_file(file): |
||
23 | with open(file) as f: |
||
24 | contents = f.read() |
||
25 | graphbytes = contents.encode("ascii") |
||
26 | base64_bytes = base64.b64encode(graphbytes) |
||
27 | image = await download_img(base64_bytes) |
||
28 | image.save(os.path.splitext(file)[0] + ".png") |
||
29 | |||
75 |