1
0

convert.py 288 B

12345678910
  1. import re
  2. def remove_extra_lines(s:str):
  3. # Alternatively: os.linesep.join([line for line in s.splitlines() if line])
  4. return re.sub('\n+', '\n', s)
  5. def remove_email_extra(s:str):
  6. s = remove_extra_lines(s)
  7. return s.replace("=20", "").replace('"3D', "").replace("=\n", "")