| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Patch by Brian Curtin.
|
|
|
|
|
| |
and make it implement the `io.BufferedIOBase` ABC to allow for further
speedups by wrapping it in an `io.BufferedReader`. Patch by Nir Aides.
|
|
|
|
| |
the gzip FNAME header as required by RFC 1952.
|
| |
|
| |
|
|
|
|
| |
override the timestamp in the gzip stream.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
read 32bit values as unsigned to start with rather than applying signedness
fixups allover the place afterwards.
This hopefully fixes the test_tarfile failure on the alpha/tru64 buildbot.
|
| |
|
|
|
|
| |
gzip header.
|
|
|
|
|
| |
filename attribute is still accessible as a property that emits a
DeprecationWarning.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
buildbot (& possibly other 64-bit boxes) during test_gzip.
The native zlib crc32 function returns an unsigned 32-bit integer,
which the Python wrapper implicitly casts to C long. Therefore the
same crc can "look negative" on a 32-bit box but "look positive" on
a 64-bit box. This patch papers over that platform difference when
writing the crc to file.
It may be better to change the Python wrapper, either to make
the result "look positive" on all platforms (which means it may
have to return a Python long at times on a 32-bit box), or to
keep the sign the same across boxes. But that would be a visible
change in what users see, while the current hack changes no
visible behavior (well, apart from stopping the struct deprecation
warning).
Note that the module-level write32() function is no longer used.
|
| |
|
|
|
|
| |
performance improvement can be found
|
| |
|
|
|
|
| |
file in order to avoid overflow or huge memory consumption. Patch by Mark Eichin
|
| |
|
|
|
|
| |
Partially fixes #1110242.
|
| |
|
|
|
|
| |
apply os.fsync() to the GzipFile backup files it creates.
|
|
|
|
| |
From SF patch #852334.
|
| |
|
|
|
|
|
|
|
|
|
| |
gzip shouldn't raise ValueError on corrupt files
Currently the gzip module will raise a ValueError if the file was
corrupt (bad crc or bad size). I can't see how that applies to
reading a corrupt file. IOError seems better, and it's what code
will likely be looking for.
|
|
|
|
|
|
|
|
|
|
| |
The last round boosted "the limit" from 2GB to 4GB. This round gets
rid of the 4GB limit. For files > 4GB, gzip stores just the last 32
bits of the file size, and now we play along with that too. Tested
by hand (on a 6+GB file) on Win2K.
Boosting from 2GB to 4GB was arguably enough "a bugfix". Going beyond
that smells more like "new feature" to me.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixed the signed/unsigned confusions when dealing with files >= 2GB.
4GB is still a hard limitation of the gzip file format, though.
Testing this was a bitch on Win98SE due to frequent system freezes. It
didn't freeze while running gzip, it kept freezing while trying to *create*
a > 2GB test file! This wasn't Python's doing. I don't know of a
reasonable way to test this functionality in regrtest.py, so I'm not
checking in a test case (a test case would necessarily require creating
a 2GB+ file first, using gzip to zip it, using gzip to unzip it again,
and then compare before-and-after; so >4GB free space would be required,
and a loooong time; I did all this "by hand" once).
Bugfix candidate, I guess.
|
| |
|
|
|
|
| |
not updated after 2.2).
|
|
|
|
| |
closes patch #536278.
|
| |
|
| |
|
| |
|
|
|
|
| |
Use IOErrors where file objects use them.
|
| |
|
|
|
|
| |
Remove unused variable and import
|
| |
|
| |
|
|
|
|
|
| |
to check for them (instead of calling them and then ignoring an
IOError)
|
|
|
|
| |
on the Mac is negativevalues > 0x80000000). Fixed.
|
| |
|
|
|
|
| |
fixed typo in ihooks docstring
|
| |
|
|
|
|
|
|
| |
.readlines() methods. Inspired by a patch from Wolfgang Grafen,
though this version of the patch was completely rewritten from his
code.
|
|
|
|
| |
called. catch the resulting AttributeError and exit cleanly.
|
|
|
|
|
|
|
|
|
|
| |
*this* set of patches is Ka-Ping's final sweep:
The attached patches update the standard library so that all modules
have docstrings beginning with one-line summaries.
A new docstring was added to formatter. The docstring for os.py
was updated to mention nt, os2, ce in addition to posix, dos, mac.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
who writes:
Here is batch 2, as a big collection of CVS context diffs.
Along with moving comments into docstrings, i've added a
couple of missing docstrings and attempted to make sure more
module docstrings begin with a one-line summary.
I did not add docstrings to the methods in profile.py for
fear of upsetting any careful optimizations there, though
i did move class documentation into class docstrings.
The convention i'm using is to leave credits/version/copyright
type of stuff in # comments, and move the rest of the descriptive
stuff about module usage into module docstrings. Hope this is
okay.
|
|
|
|
|
| |
the default arg for read() is -1, not None, and readlines() has an
optional argument (which for now is ignored).
|
|
|
|
| |
Skip Montanaro's return-value patches.
|