summaryrefslogtreecommitdiff
path: root/Lib/sndhdr.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-01-06 15:20:49 +0000
committerFred Drake <fdrake@acm.org>1999-01-06 15:20:49 +0000
commit2c118d5939be8ba1defe0eedeaeaf4cb5bfde509 (patch)
tree0b43ccb17a86190390614bb07ab2f138b32c5f01 /Lib/sndhdr.py
parente5017e30720dc9df37b16f259327e8a5719bd931 (diff)
downloadcpython-2c118d5939be8ba1defe0eedeaeaf4cb5bfde509.tar.gz
Move brief descriptions of what() and whathdr() to docstrings in the
functions (from comments).
Diffstat (limited to 'Lib/sndhdr.py')
-rw-r--r--Lib/sndhdr.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/Lib/sndhdr.py b/Lib/sndhdr.py
index d9f8372abb..b2cdd307f4 100644
--- a/Lib/sndhdr.py
+++ b/Lib/sndhdr.py
@@ -31,20 +31,14 @@ explicitly given directories.
# subroutine come last.
-#--------------------------------#
-# Guess the type of a sound file #
-#--------------------------------#
-
def what(filename):
+ """Guess the type of a sound file"""
res = whathdr(filename)
return res
-#-------------------------#
-# Recognize sound headers #
-#-------------------------#
-
def whathdr(filename):
+ """Recognize sound headers"""
f = open(filename, 'r')
h = f.read(512)
for tf in tests: