summaryrefslogtreecommitdiffstats
path: root/Lib/chunk.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-29762: More use "raise from None". (#569)Serhiy Storchaka2017-04-051-1/+1
| | | This hides unwanted implementation details from tracebacks.
* Issue #25523: Correct "a" article to "an" articleMartin Panter2015-11-021-1/+1
| | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar.
* Issue #24608: chunk.Chunk.read() now always returns bytes, not str.Serhiy Storchaka2015-07-101-1/+1
|
* Issue #23865: close() methods in multiple modules now are idempotent and moreSerhiy Storchaka2015-04-101-2/+4
| | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured.
* Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-3/+3
|
* Raise statement normalization in Lib/.Collin Winter2007-08-301-6/+6
|
* Make a few more tests pass with the new I/O library.Guido van Rossum2007-04-121-1/+1
| | | | | | Fix the truncate() semantics -- it should not affect the current position. Switch wave.py/chunk.py to struct.unpack_from() to support bytes. Don't use writelines() on binary files (test_fileinput.py).
* Patch #1373643: The chunk module can now read chunks larger thanGeorg Brandl2006-02-181-1/+1
| | | | two gigabytes.
* Partial introduction of bools where appropriate.Guido van Rossum2002-04-071-10/+10
|
* Clean up bare except: when determining whether a file is seekable.Fred Drake2001-05-111-2/+2
|
* Fix typo in attribute name (chunk_size should be chunksize) found byGuido van Rossum2001-04-151-1/+1
| | | | Neil Norwitz's PyChecker.
* removed __all__ from several modulesSkip Montanaro2001-02-181-2/+0
|
* Whitespace normalization.Tim Peters2001-01-211-1/+1
|
* added __all__ lists to a number of Python modulesSkip Montanaro2001-01-201-0/+2
| | | | | | | | added test script and expected output file as well this closes patch 103297. __all__ attributes will be added to other modules without first submitting a patch, just adding the necessary line to the test script to verify more-or-less correct implementation.
* Whitespace normalization.Tim Peters2001-01-141-8/+7
|
* Sjoerd Mullender writes:Guido van Rossum1999-08-261-3/+12
| | | | | | | | | | | | | | | | | | | | | | """ Extended chunk so that it can also handle formats that are almost according to EA IFF 85. In particular, added options to handle little-endian and to handle formats that include the header size in the chunk size value. Fixed a bug where the header size was included in the chunk size, which it isn't according to EA IFF 85. Added a new method getsize() to get the size of the chunk (excluding header). Fixed chunk documentation (TIFF doesn't look like it uses chunks). Converted wave to use chunk. Wave uses EA IFF 85 chunks except that it uses little-endian encoding of integer data. Removed __del__ methods from aifc and wave since I got an AttributeError there upon exit. """
* Patch from Sjoerd Mullender:Fred Drake1999-06-251-12/+12
| | | | | Make argument names equal to what is used in the documentation of the file object, since chunks are supposedly file-like.
* Sjoerd Mullender:Guido van Rossum1999-06-161-8/+24
| | | | | | | Added support for unseekable files. (I use unqualified excepts since we don't know why the seek/tell might fail. In my case it was because of an AttributeError.)
* Oops, Sjoerd was in a hurry. This patch from him fixes some lengthGuido van Rossum1999-06-091-0/+1
| | | | math in the Chunk class.
* Patch/new code by Sjoerd Mullender:Guido van Rossum1999-06-091-0/+142
Separate the Chunk class out of the aifc module into a new "chunk" module.