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
Fix for Python2 compatibility
test_fixup
Vadim Lebedev
2 years ago
parent
0810f77dcb
commit
5307ed6b87
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
@@ -163,7 +163,7 @@ def is_archive(f, formats=(None,), filters=(None,)):
This function will return True if the file can be opened as an archive using the given
format(s)/filter(s).'''
need_close
: bool
= False
need_close = False
if isinstance(f, str):
f = open(f, 'rb')
need_close = True
Write
Preview
Loading…
Cancel
Save