mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Refactor: Use io module for seek operation in worker function
This commit is contained in:
parent
517f2256b6
commit
dfc027c2ff
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ class SaveFile:
|
|||
|
||||
file_name = getattr(fp, "name", "file.jpg")
|
||||
|
||||
fp.seek(0, os.SEEK_END)
|
||||
fp.seek(0, io.SEEK_END)
|
||||
file_size = fp.tell()
|
||||
fp.seek(0)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue