diff options
| author | pjotrp | 2026-03-22 13:39:41 +0100 |
|---|---|---|
| committer | pjotrp | 2026-03-22 13:39:41 +0100 |
| commit | 9501b18f31285554b80db89473d6846692284396 (patch) | |
| tree | 21eedd25533b28930eaec86166ec67283cdaddd3 /gn/packages/patches/python2-htmlgen-Fix-test-for-random.patch | |
| parent | 039e3091ac0866d35aa08015c0fc71778599b8d4 (diff) | |
| download | guix-bioinformatics-9501b18f31285554b80db89473d6846692284396.tar.gz | |
move patches
Diffstat (limited to 'gn/packages/patches/python2-htmlgen-Fix-test-for-random.patch')
| -rw-r--r-- | gn/packages/patches/python2-htmlgen-Fix-test-for-random.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gn/packages/patches/python2-htmlgen-Fix-test-for-random.patch b/gn/packages/patches/python2-htmlgen-Fix-test-for-random.patch new file mode 100644 index 0000000..279a82f --- /dev/null +++ b/gn/packages/patches/python2-htmlgen-Fix-test-for-random.patch @@ -0,0 +1,25 @@ +From c9ca65d39ca1185cebf5be86a10ba0ceea171249 Mon Sep 17 00:00:00 2001 +From: Pjotr Prins <pjotr.public01@thebird.nl> +Date: Sat, 13 Feb 2016 13:40:46 +0100 +Subject: [PATCH 2/2] Fix test for random + +--- + HTMLgen.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/HTMLgen.py b/HTMLgen.py +index dbdbd81..034f672 100644 +--- a/HTMLgen.py ++++ b/HTMLgen.py +@@ -924,7 +924,7 @@ class MailTo: + def antispam(self, address): + """Process a string with HTML encodings to defeat address spiders. + """ +- from whrandom import choice ++ from random import choice + buffer = map(None, address) + for i in range(0, len(address), choice((2,3,4))): + buffer[i] = '&#%d;' % ord(buffer[i]) +-- +2.1.4 + |
