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
Unified 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
This function will return True if the file can be opened as an archive using the given
format(s)/filter(s).'''
format(s)/filter(s).'''
need_close
: bool
= False
need_close = False
if isinstance(f, str):
if isinstance(f, str):
f = open(f, 'rb')
f = open(f, 'rb')
need_close = True
need_close = True
Write
Preview
|
|
|
|
|
|
x
0
0
0:0
Loading…
Cancel
Save