Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv913

Modified Files:
        tokenizer.py 
Log Message:
No need to print stats after every run at this point.
Minor tweak for lookup failures.


Index: tokenizer.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/tokenizer.py,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -d -r1.45 -r1.46
*** tokenizer.py        10 Aug 2006 04:07:59 -0000      1.45
--- tokenizer.py        13 Dec 2006 14:44:49 -0000      1.46
***************
*** 43,47 ****
      import dnscache
      cache = dnscache.cache(cachefile=options["Tokenizer", "lookup_ip_cache"])
!     cache.printStatsAtEnd = True
  except (IOError, ImportError):
      cache = None
--- 43,47 ----
      import dnscache
      cache = dnscache.cache(cachefile=options["Tokenizer", "lookup_ip_cache"])
!     cache.printStatsAtEnd = False
  except (IOError, ImportError):
      cache = None
***************
*** 1087,1092 ****
              if cache is not None and options["Tokenizer", "x-lookup_ip"]:
                  ips=cache.lookup(netloc)
!                 if len(ips)==0:
!                     pushclue("url-ip:timeout")
                  else:
                      for ip in ips: # Should we limit to one A record?
--- 1087,1092 ----
              if cache is not None and options["Tokenizer", "x-lookup_ip"]:
                  ips=cache.lookup(netloc)
!                 if not ips:
!                     pushclue("url-ip:lookup error")
                  else:
                      for ip in ips: # Should we limit to one A record?

_______________________________________________
Spambayes-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/spambayes-checkins

Reply via email to