[projects/pld-builder.new] - one more fix, still not fully ported to python 3.x
hawk
hawk at pld-linux.org
Tue Mar 23 01:50:39 CET 2021
commit ccee54c2efc59acafcca2d77ce2499d7df202250
Author: Marcin Krol <mk at furud.net>
Date: Tue Mar 23 01:49:57 2021 +0100
- one more fix, still not fully ported to python 3.x
PLD_Builder/mailer.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/PLD_Builder/mailer.py b/PLD_Builder/mailer.py
index 0c6ea27..b7d44ab 100644
--- a/PLD_Builder/mailer.py
+++ b/PLD_Builder/mailer.py
@@ -14,9 +14,9 @@ import log
def recode(s):
if s.__class__ == ''.__class__:
- return s.decode('iso-8859-1', 'replace').encode('us-ascii', 'replace')
+ return s.encode('iso-8859-1', 'replace').decode('us-ascii', 'replace')
else:
- return s.encode('us-ascii', 'replace')
+ return s.decode('us-ascii', 'replace')
class Message:
def __init__(self):
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/ccee54c2efc59acafcca2d77ce2499d7df202250
More information about the pld-cvs-commit
mailing list