Probably because you didn't import the string module and are using string.rstrip... --bjorn "David R. Favor" wrote: > In the attached code, would someone point out why the function > chomp4() throws an exception? > > Thanks. > > ------------------------------------------------------------------------ > > fileio.pyName: fileio.py > Type: Plain Text (text/plain)