From f99349293e71fb8f74f79034c33ebc2583aa1b61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Thu, 10 Jun 2021 12:42:57 +0200 Subject: Change encoding method for tex labels. --- do.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/do.py b/do.py index e898898..c72cd60 100755 --- a/do.py +++ b/do.py @@ -5,7 +5,7 @@ import os import pwd import subprocess from subprocess import PIPE -from base64 import b64encode +import hashlib import os.path as path import email from email.policy import default @@ -276,7 +276,7 @@ for match in tag_iter: outstr += page1[pos:match.start()] pos = match.end() - uid = b64encode((url + frag).encode('UTF-8')) + uid = hashlib.md5((url + frag).encode('UTF-8')).hexdigest() title = comment or url or frag -- cgit v1.2.3