pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-flask-sendmail: fix type error when sending messages



Module Name:	pkgsrc-wip
Committed By:	Pierre Pronchery <khorben%defora.org@localhost>
Pushed By:	khorben
Date:		Thu May 27 15:10:17 2021 +0200
Changeset:	45e74109525d6ae2aa1b49353980edeeadaf5083

Modified Files:
	py-flask-sendmail/Makefile
Added Files:
	py-flask-sendmail/patches/patch-flask__sendmail_connection.py

Log Message:
py-flask-sendmail: fix type error when sending messages

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=45e74109525d6ae2aa1b49353980edeeadaf5083

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-flask-sendmail/Makefile                                |  1 +
 .../patches/patch-flask__sendmail_connection.py           | 15 +++++++++++++++
 2 files changed, 16 insertions(+)

diffs:
diff --git a/py-flask-sendmail/Makefile b/py-flask-sendmail/Makefile
index 2c930832d0..888e2afa72 100644
--- a/py-flask-sendmail/Makefile
+++ b/py-flask-sendmail/Makefile
@@ -2,6 +2,7 @@
 
 DISTNAME=	Flask-Sendmail-0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
+PKGREVISION=	1
 CATEGORIES=	www python
 MASTER_SITES=	${MASTER_SITE_PYPI:=F/Flask-Sendmail/}
 
diff --git a/py-flask-sendmail/patches/patch-flask__sendmail_connection.py b/py-flask-sendmail/patches/patch-flask__sendmail_connection.py
new file mode 100644
index 0000000000..38df35e68e
--- /dev/null
+++ b/py-flask-sendmail/patches/patch-flask__sendmail_connection.py
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Fix type error when sending messages
+
+--- flask_sendmail/connection.py.orig	2012-04-23 02:11:53.000000000 +0000
++++ flask_sendmail/connection.py
+@@ -20,7 +20,7 @@ class Connection(object):
+     def send(self, message):
+         sm = Popen([self.mail.mailer, self.mail.mailer_flags], stdin=PIPE,
+                    stdout=PIPE, stderr=STDOUT)
+-        sm.stdin.write(message.dump())
++        sm.stdin.write(message.dump().encode())
+         sm.communicate()
+ 
+         return sm.returncode


Home | Main Index | Thread Index | Old Index