[fix] Dirty fix marrow mailer

This commit is contained in:
Alex 2021-05-01 09:32:26 +02:00
parent a091051069
commit e946a74a19

View file

@ -1,4 +1,16 @@
#!/usr/bin/python3
#upstream bug dirty fix https://github.com/marrow/mailer/issues/87#issuecomment-689586587
import sys
if sys.version_info[0] == 3 and sys.version_info[1] > 7:
sys.modules["cgi.parse_qsl"] = None
#upstream bug dirty fix https://github.com/marrow/mailer/issues/87#issuecomment-713319548
import base64
if sys.version_info[0] == 3 and sys.version_info[1] > 8:
def encodestring(value):
return base64.b64encode(value)
base64.encodestring = encodestring
#end bugfix
import argparse
import configparser
import time