You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
755 B

  1. From c9ca65d39ca1185cebf5be86a10ba0ceea171249 Mon Sep 17 00:00:00 2001
  2. From: Pjotr Prins <pjotr.public01@thebird.nl>
  3. Date: Sat, 13 Feb 2016 13:40:46 +0100
  4. Subject: [PATCH 2/2] Fix test for random
  5. ---
  6. HTMLgen.py | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/HTMLgen.py b/HTMLgen.py
  9. index dbdbd81..034f672 100644
  10. --- a/HTMLgen.py
  11. +++ b/HTMLgen.py
  12. @@ -924,7 +924,7 @@ class MailTo:
  13. def antispam(self, address):
  14. """Process a string with HTML encodings to defeat address spiders.
  15. """
  16. - from whrandom import choice
  17. + from random import choice
  18. buffer = map(None, address)
  19. for i in range(0, len(address), choice((2,3,4))):
  20. buffer[i] = '&#%d;' % ord(buffer[i])
  21. --
  22. 2.1.4