John-Mark Gurney
ba5832c545
separate closing from deferred closing for streams.. make context work...
don't leak file in SeekableArchive..
4 years ago
John-Mark Gurney
f8ce7b22ee
fix context manager to close, and properly handle closing...
Minor fix is allowing to use pathlib w/ Archive as well..
This also adds a basic test to make sure these features aren't
broken in the future..
4 years ago
Vadim Lebedev
7ae17e9df7
Cleanup
4 years ago
Vadim Lebedev
c5658c78d7
Fixes to create password protected ZIP files
4 years ago
Vadim Lebedev
f1a4504aae
Fix creation of password protected ZIP files
4 years ago
Vadim Lebedev
4864f77f55
Restore formatting
4 years ago
Vadim Lebedev
0f1190d007
Fix password protected ZIP creation and reading
4 years ago
Vadim Lebedev
aa419e61d9
String and unicode handling fixes
4 years ago
Vadim Lebedev
0b924d9050
Fix writing unicod data in python2
4 years ago
Vadim Lebedev
e9c1df8f77
Cleanup unused code
4 years ago
Vadim Lebedev
c94a053099
Unicode - related fixes
4 years ago
Vadim Lebedev
70a29e44c9
Fix python version check
4 years ago
Vadim Lebedev
2f7a7d674f
More Python 2 compatibility fixes
4 years ago
Vadim Lebedev
5307ed6b87
Fix for Python2 compatibility
4 years ago
Vadim Lebedev
88051247e9
remove printing if symlink data
4 years ago
Vadim Lebedev
5f94da7c4d
Fix version function
4 years ago
Vadim Lebedev
e11c498291
Fixes for version number verification
4 years ago
Vadim Lebedev
794ef1cb17
cosmetics
4 years ago
Vadim Lebedev
c5e562d4cd
Fix exception text
4 years ago
Vadim Lebedev
546d89852e
open archive in binary mode
4 years ago
Vadim Lebedev
855dc86d1d
is_archive: Avoid closing a file not opened by is_archive
4 years ago
Vadim Lebedev
f38459c730
Fix archive element closing
4 years ago
Vadim Lebedev
0c5afe44e7
Fixes to handle password protected archives
4 years ago
Vadim Lebedev
9bb3133f6e
Add password support for read access
4 years ago
Richard Young
32a2fa4fb7
switched to python 3.9
4 years ago
Richard Young
f78b6717ac
stuff
4 years ago
Richard Young
8aded1ab98
work
4 years ago
Richard Young
f35ce39dfe
stuff
4 years ago
Richard Young
08db5d3f6e
fixes
4 years ago
Richard Young
22d911afef
symlink api
4 years ago
Richard Young
08704fd4eb
wip
4 years ago
Aaron Sierra
fcead6fb1d
Handle file-like objects with integer name attribute
When io.BufferedReader (and others) are init-ed based on a file
descriptor, their name attribute will be an integer. Handle these
objects by explicitly checking for an integer type in guess_format() and
setting sane values (empty strings).
We don't trap an exception because Python 2 and 3 throw different types;
AttributeError and TypeError, respectively. So, this way seemed cleaner.
6 years ago
Aaron Sierra
bdedb5d597
Fix Python 2 pathname type set by from_archive()
A trailing comma resulted in Entry.pathname being a tuple instead
of a string when using Entry.from_archive() in Python 2.
This partially reverts 5013165958 ("Fix tests for python 2 and 3"),
which accounted for Entry.pathname as a tuple, instead of addressing why
it had become one.
This also adds whitespace around the assignment operator for Python 2
and 3 to look less like a keyword argument assignment (which appears to
be where the comma originally came from).
6 years ago
Jessica Hair
c9f15fef84
Check if data is already bytes
6 years ago
Clifton Barnes
5013165958
Fix tests for python 2 and 3
6 years ago
Jessica Hair
bfe92166e5
Use open instead of file
6 years ago
Jessica Hair
cdb7e6750a
Update to python 3
6 years ago
Travis Cunningham
b208154939
Fixed test for writing directories.
11 years ago
Ryan Johnston
eeb95116cc
Add option to set mode to folder.
Add option to set mode to folder.
11 years ago
root
bfc45cb236
Fixed the file mode not reading the correct integer value
12 years ago