]> granicus.if.org Git - python/commitdiff
Move brief descriptions of what() and whathdr() to docstrings in the
authorFred Drake <fdrake@acm.org>
Wed, 6 Jan 1999 15:20:49 +0000 (15:20 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 6 Jan 1999 15:20:49 +0000 (15:20 +0000)
functions (from comments).

Lib/sndhdr.py

index d9f8372abb07f162e41bea973b1157ab5a8bfb82..b2cdd307f4afd69d1159da50b838675f74afa8a6 100644 (file)
@@ -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: