summaryrefslogtreecommitdiffstats
path: root/Lib/imghdr.py
Commit message (Collapse)AuthorAgeFilesLines
* More trivial comment -> docstring transformations by Ka-Ping Yee,Guido van Rossum2000-02-041-88/+88
| | | | | | | | | | | | | | | | | | 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.
* Allow open file as parameter (must be seekable) (Jack)Guido van Rossum1997-10-081-4/+10
|
* (Jack:) Recognize PNG files.Guido van Rossum1997-04-111-0/+12
|
* imghdr.what(): check for not h'. This letsGuido van Rossum1996-08-221-1/+1
| | | | | | you do: imghdr.what(None, '') And still go down the
* Added optional second arg to what(), giving the data read from the fileGuido van Rossum1996-07-301-7/+13
| | | | (then f may be None).
* * calendar.py: all libC functionality now moved to built-in time moduleGuido van Rossum1993-06-231-0/+6
| | | | | | | * imghdr.py: added jpeg recognition * torgb.py: added jpeg conversion * tzparse.py: use functions from time instead of calendar * whatsound.py: add /ufs/guido/biin/sgi to $PATH when calling 'whatsound'
* Misc changes and new modules. whrandom is "objectified". SOCKET.pyGuido van Rossum1992-10-181-5/+21
| | | | is moved to the sgi subdirectory.
* Fix pnm test for short files and add X bitmap as recognized typeGuido van Rossum1992-06-031-1/+10
|
* Initial revisionGuido van Rossum1992-05-271-0/+98