summaryrefslogtreecommitdiff
path: root/Doc/library/imghdr.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-06-01 17:35:27 +0000
committerGeorg Brandl <georg@python.org>2009-06-01 17:35:27 +0000
commit3dd3388229995e00cf0ba858700576a79de0d6ec (patch)
tree7592304f798f920d045323b9cea5808c28096410 /Doc/library/imghdr.rst
parent5ce83a004fc0904a43c901c4144c041e2a4155d7 (diff)
downloadcpython-git-3dd3388229995e00cf0ba858700576a79de0d6ec.tar.gz
Convert all "i" docs to new style optional args.
Diffstat (limited to 'Doc/library/imghdr.rst')
-rw-r--r--Doc/library/imghdr.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/library/imghdr.rst b/Doc/library/imghdr.rst
index d533a3e56b..0c0722df17 100644
--- a/Doc/library/imghdr.rst
+++ b/Doc/library/imghdr.rst
@@ -1,4 +1,3 @@
-
:mod:`imghdr` --- Determine the type of an image
================================================
@@ -12,7 +11,7 @@ byte stream.
The :mod:`imghdr` module defines the following function:
-.. function:: what(filename[, h])
+.. function:: what(filename, h=None)
Tests the image data contained in the file named by *filename*, and returns a
string describing the image type. If optional *h* is provided, the *filename*