You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
before <is_tarfile> pos: 0
<is_tarfile> result: False
after <is_tarfile> pos: 0
before <is_rarfile> pos: 0
<is_rarfile> result: False
after <is_rarfile> pos: 8
When the args xfile is BytesIO, is_rarfile don't set pos to the value before call.
I tried some other libraries, and tarfile is a std library, it will set pos to the value before call.
I think if is_rarfile does the same, it will improve the logic and consistency of the code.
The text was updated successfully, but these errors were encountered:
rarfile/rarfile.py
Lines 348 to 367 in db1df33
CPython versions tested on:
3.12
Operating systems tested on:
Windows
Test code:
Output:
When the args
xfile
is BytesIO,is_rarfile
don't set pos to the value before call.I tried some other libraries, and
tarfile
is a std library, it will set pos to the value before call.I think if
is_rarfile
does the same, it will improve the logic and consistency of the code.The text was updated successfully, but these errors were encountered: