[Spambayes-checkins] spambayes/spambayes UserInterface.py, 1.31, 1.32

Tony Meyer anadelonbrin at users.sourceforge.net
Thu Oct 2 22:37:12 EDT 2003


Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1:/tmp/cvs-serv27562/spambayes

Modified Files:
	UserInterface.py 
Log Message:
Opps - forgot to test pre Python 2.3.  Two wee bugs that would arise in that
case.

Index: UserInterface.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/UserInterface.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** UserInterface.py	3 Oct 2003 02:34:37 -0000	1.31
--- UserInterface.py	3 Oct 2003 02:37:10 -0000	1.32
***************
*** 1114,1118 ****
          chunks = wordsep_re.split(text)
          chunks = filter(None, chunks)
!         return self._wrap_chunks(chunks, width)
  
      def _wrap_chunks(self, chunks, width):
--- 1114,1118 ----
          chunks = wordsep_re.split(text)
          chunks = filter(None, chunks)
!         return '\n'.join(self._wrap_chunks(chunks, width))
  
      def _wrap_chunks(self, chunks, width):
***************
*** 1139,1142 ****
                  del cur_line[-1]
              if cur_line:
!                 lines.append(indent + ''.join(cur_line))
          return lines
--- 1139,1142 ----
                  del cur_line[-1]
              if cur_line:
!                 lines.append(''.join(cur_line))
          return lines





More information about the Spambayes-checkins mailing list