mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-31 20:54:51 +00:00
Merge pull request #55 from troublescope/main
Refactor: Use io module for seek operation
This commit is contained in:
commit
0692acbc60
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