From: Fred Drake Date: Wed, 6 Jan 1999 15:20:49 +0000 (+0000) Subject: Move brief descriptions of what() and whathdr() to docstrings in the X-Git-Tag: v1.5.2b2~447 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc1aedfe2e33f2d230d994985c08cfd116bf1fa0;p=python Move brief descriptions of what() and whathdr() to docstrings in the functions (from comments). --- 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: