[fix] Remove marrow.mailer dirtyfix
This commit is contained in:
parent
2446c76b6a
commit
06a5e82867
1 changed files with 0 additions and 23 deletions
23
mms2mail
23
mms2mail
|
@ -1,28 +1,5 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
"""An mms to mail converter for mmsd."""
|
"""An mms to mail converter for mmsd."""
|
||||||
# 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):
|
|
||||||
"""
|
|
||||||
Encode string in base64.
|
|
||||||
|
|
||||||
:param value: the string to encode.
|
|
||||||
:type value: str
|
|
||||||
|
|
||||||
:rtype str
|
|
||||||
:return: the base64 encoded string
|
|
||||||
"""
|
|
||||||
return base64.b64encode(value)
|
|
||||||
base64.encodestring = encodestring
|
|
||||||
# end bugfix
|
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import configparser
|
import configparser
|
||||||
import getpass
|
import getpass
|
||||||
|
|
Loading…
Reference in a new issue