This website works better with JavaScript.
Home
Explore
Help
Sign In
jmg
/
python-libarchive
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
open archive in binary mode
test_fixup
Vadim Lebedev
2 years ago
parent
855dc86d1d
commit
546d89852e
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libarchive/__init__.py
+ 1
- 1
libarchive/__init__.py
View File
@@ -160,7 +160,7 @@ def is_archive(f, formats=(None, ), filters=(None, )):
format(s)/filter(s).'''
need_close : bool = False
if isinstance(f, str):
f = open(f, 'r')
f = open(f, 'r
b
')
need_close = True
a = _libarchive.archive_read_new()
for format in formats:
Write
Preview
Loading…
Cancel
Save