[Spambayes-checkins] spambayes/Outlook2000 msgstore.py,1.1,1.2

Tim Peters tim_one@users.sourceforge.net
Thu, 24 Oct 2002 14:52:59 -0700


Update of /cvsroot/spambayes/spambayes/Outlook2000
In directory usw-pr-cvs1:/tmp/cvs-serv9626

Modified Files:
	msgstore.py 
Log Message:
Can't suppress FutureWarning unless using a version of Python in which
it exists.


Index: msgstore.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/msgstore.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** msgstore.py	24 Oct 2002 13:06:39 -0000	1.1
--- msgstore.py	24 Oct 2002 21:52:57 -0000	1.2
***************
*** 72,76 ****
  # Our MAPI implementation
  import warnings
! warnings.filterwarnings("ignore", category=FutureWarning, append=1)
  
  from win32com.client import Dispatch, constants
--- 72,78 ----
  # Our MAPI implementation
  import warnings
! if sys.version_info >= (2, 3):
!     # sick off the new hex() warnings!
!     warnings.filterwarnings("ignore", category=FutureWarning, append=1)
  
  from win32com.client import Dispatch, constants
***************
*** 307,309 ****
  if __name__=='__main__':
      test()
!     
\ No newline at end of file
--- 309,311 ----
  if __name__=='__main__':
      test()
!