summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-01-06 15:20:49 (GMT)
committerFred Drake <fdrake@acm.org>1999-01-06 15:20:49 (GMT)
commitdc1aedfe2e33f2d230d994985c08cfd116bf1fa0 (patch)
tree5cd46ec9811dae5731d3df58d6b563fbc63cddbb /Lib
parent9ddaaa1a30a8a0681b60922e877f3b7d23e6bdf6 (diff)
downloadcpython-dc1aedfe2e33f2d230d994985c08cfd116bf1fa0.zip
cpython-dc1aedfe2e33f2d230d994985c08cfd116bf1fa0.tar.gz
cpython-dc1aedfe2e33f2d230d994985c08cfd116bf1fa0.tar.bz2
Move brief descriptions of what() and whathdr() to docstrings in the
functions (from comments).
Diffstat (limited to 'Lib')
-rw-r--r--Lib/sndhdr.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/Lib/sndhdr.py b/Lib/sndhdr.py
index d9f8372..b2cdd30 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: