summaryrefslogtreecommitdiffstats
path: root/Lib/aifc.py
Commit message (Collapse)AuthorAgeFilesLines
* [2.7] bpo-31848: Fix broken error handling in Aifc_read.initfp() when the ↵Miss Islington (bot)2018-02-211-0/+1
| | | | | | | | | | | SSND chunk is not found (GH-5240) (GH-5781) Initialize self._ssnd_chunk so that aifc.Error is raised as intended, not AttributeError. (cherry picked from commit 80d20b918bd8a882043c493a7f958333ecb41727) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-29110: Fix file object leak in aifc.open (GH-356)INADA Naoki2017-02-281-4/+14
|
* Issue #23865: close() methods in multiple modules now are idempotent and moreSerhiy Storchaka2015-04-101-4/+7
| | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured.
* Issue #19623: Fixed writing to unseekable files in the aifc module.Serhiy Storchaka2013-12-141-5/+10
| | | | Fixed writing 'ulaw' (lower case) compressed AIFC files.
* Issue #18919: If the close() method of a writer in the sunau or wave moduleSerhiy Storchaka2013-10-121-9/+9
| | | | | | | failed, second invocation of close() and destructor no more raise an exception. Second invocation of close() on sunau writer now has no effects. The aifc module now accepts lower case of names of the 'ulaw' and 'alaw' codecs.
* Issue #19131: The aifc module now correctly reads and writes sampwidth ofSerhiy Storchaka2013-10-121-5/+7
| | | | compressed streams.
* Issue #18817: Fix a resource warning in Lib/aifc.py demo.Serhiy Storchaka2013-08-251-19/+23
|
* #18705: fix a number of typos. Patch by Févry Thibault.Ezio Melotti2013-08-171-1/+1
|
* Issue #16485: Fix file descriptor not being closed if file header patching ↵Serhiy Storchaka2012-12-291-16/+22
| | | | fails on closing of aifc file.
* Issue #13589: Fix some serialization primitives in the aifc module.Antoine Pitrou2012-01-171-18/+30
| | | | Patch by Oleg Plakhotnyuk.
* Fix py3k warnings in the aifc moduleAntoine Pitrou2009-10-141-11/+11
|
* Issue5955: aifc's close method did not close the file it wrapped,R. David Murray2009-05-071-3/+4
| | | | now it does. This also means getfp method now returns the real fp.
* actually close files instead of leaving it to the gc #5955Benjamin Peterson2009-05-071-3/+2
|
* prevent ref cycles by removing bound method on close()Benjamin Peterson2009-04-301-0/+2
|
* Fix issue 2245. aifc now skips any chunk type it doesn't actuallyR. David Murray2009-04-291-7/+0
| | | | | | | process instead of throwing errors for anything not in an explicit skip list. This is per this spec: http://www.cnpbagwell.com/aiff-c.txt. Spec reference and test sound file provided by Santiago Peresón, fix based on patch by Hiroaki Kawai.
* Remove tuple parameter unpacking in aifc to silence warnings under -3.Brett Cannon2008-08-041-1/+2
|
* Add a length check to aifc to ensure it doesn't write a bogus fileBob Ippolito2006-05-301-0/+2
|
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-2/+2
| | | | From SF patch #852334.
* Fix wanrings about unsigned hex constants.Guido van Rossum2002-08-121-2/+2
|
* SF #515004 cleanupNeal Norwitz2002-02-111-4/+2
| | | | | - remove unnecessary imports - rename dum -> dummy
* 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 standardization.Tim Peters2001-01-141-1/+1
|
* Convert some old-style string exceptions to class exceptions.Fred Drake2000-08-171-1/+2
|
* Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters2000-07-161-1/+1
| | | | | | | | | | comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
* Sjoerd Mullender:Guido van Rossum2000-03-071-1/+1
| | | | | The (relatively) new chunk module uses seek, not setpos. One instance of the call still needed to be fixed.
* Mass patch by Ka-Ping Yee:Guido van Rossum2000-02-021-917/+918
| | | | | | | | | | | 1. Comments at the beginning of the module, before functions, and before classes have been turned into docstrings. 2. Tabs are normalized to four spaces. Also, removed the "remove" function from dircmp.py, which reimplements list.remove() (it must have been very old).
* Sjoerd Mullender writes:Guido van Rossum1999-08-261-6/+0
| | | | | | | | | | | | | | | | | | | | | | """ 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. """
* Make the mode parameter to open() default in the same way as for wave.open().Fred Drake1999-06-221-4/+9
|
* Patch/new code by Sjoerd Mullender:Guido van Rossum1999-06-091-74/+13
| | | | Separate the Chunk class out of the aifc module into a new "chunk" module.
* The _comp_data() function never worked, it contained a reference toGuido van Rossum1999-05-031-1/+1
| | | | undefined 'nframes'. Should be self._nframes. (Andrew Dalke & kjpylint)
* [Sjoerd Mullender]Guido van Rossum1998-08-071-25/+24
| | | | Don't use CL module since all constants are now in cl.
* Small corrections to comments that were cloned from aifc; moreoverGuido van Rossum1998-04-231-1/+1
| | | | | | the description of setparams() was wrong. wave.py: Include the tag of an unknown format in the exception.
* Use newer struct, which handles unsigned long rightGuido van Rossum1997-01-111-3/+1
|
* Rewrote _{read,write}_{short,long} to use the newly revamped structGuido van Rossum1996-12-311-37/+44
| | | | | | module. (Small problem: struct.pack() won't deal with the Python long ints returned by struct.unpack() for the 'L' format. Worked around that for now.)
* Get rid of access statementGuido van Rossum1996-08-201-9/+9
|
* temporarily disabled the access statementsGuido van Rossum1995-08-101-4/+4
|
* Ignore empty markers.Sjoerd Mullender1994-10-031-1/+5
|
* audiodev.py: Mac port.Guido van Rossum1994-09-161-2/+2
| | | | | Audio_mac.py: Mac specific class for audiodev.py. aifc.py: open files for reading/writing in binary mode ('rb', 'wb').
* Added support for ADPCM compression.Sjoerd Mullender1994-09-061-6/+47
|
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-011-1/+4
|
* Use __builtin__ instead of builtinGuido van Rossum1994-01-281-3/+3
|
* aifc.py: framerate should be an int.Sjoerd Mullender1994-01-281-1/+1
| | | | | sunau.py: should convert number of frames correctly to number of bytes when reading.
* Removed now useless convert functions.Sjoerd Mullender1994-01-061-12/+0
|
* Removed silly dependence on AL module.Sjoerd Mullender1994-01-061-54/+31
|
* aifc.py, sunau.py: Adapted comments; added access statements.Sjoerd Mullender1993-12-201-8/+18
| | | | SUNAUDIODEV.py: Added some constants for Solaris.
* * aifc.py (Aifc_write): fix bogus reference to filenameGuido van Rossum1993-12-171-0/+3
|
* * Mass change: get rid of all init() methods, in favor of __init__()Guido van Rossum1993-12-171-22/+18
| | | | | | | constructors. There is no backward compatibility. Not everything has been tested. * aiff.{py,doc}: deleted in favor of aifc.py (which contains its docs as comments)
* Don't close the file.Sjoerd Mullender1993-12-161-8/+7
|
* aifc.py: added missing tell() method in AIFC write class;Sjoerd Mullender1993-12-131-47/+98
| | | | | | | use audioop module as backup for cl module when reading or writing u-law compressed files. sunau.py: interface with the same methods as aifc for Sun and NeXT audio files
* Fixed dealing with faulty COMM chunks.Sjoerd Mullender1993-08-261-3/+3
|