[Docstring-checkins] CVS: dps/dps utils.py,1.9,1.10
Status: Pre-Alpha
Brought to you by:
goodger
From: David G. <go...@us...> - 2002-01-16 02:45:25
|
Update of /cvsroot/docstring/dps/dps In directory usw-pr-cvs1:/tmp/cvs-serv27722/dps/dps Modified Files: utils.py Log Message: - Moved `normname()` from restructuredtext/states.py. Index: utils.py =================================================================== RCS file: /cvsroot/docstring/dps/dps/utils.py,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** utils.py 2001/11/22 04:10:50 1.9 --- utils.py 2002/01/16 02:45:22 1.10 *************** *** 173,174 **** --- 173,178 ---- attributes[name] = convertor(value) # raises ValueError if invalud return attributes + + def normname(name): + """Return a case- and whitespace-normalized name.""" + return ' '.join(name.lower().split()) |