summaryrefslogtreecommitdiff
path: root/src/mailman/utilities/compat.py
diff options
context:
space:
mode:
authorBarry Warsaw2015-09-04 22:28:46 -0400
committerBarry Warsaw2015-09-04 22:28:46 -0400
commit14faa52431f4d5a5c3ac11997d20a7feb82e7b0c (patch)
treec921a66c3908385bf8bb624a11d8a3e721ada8e0 /src/mailman/utilities/compat.py
parentc5b8e9bfc0757b51a5ee5d866d247cbb9139c244 (diff)
downloadmailman-14faa52431f4d5a5c3ac11997d20a7feb82e7b0c.tar.gz
mailman-14faa52431f4d5a5c3ac11997d20a7feb82e7b0c.tar.zst
mailman-14faa52431f4d5a5c3ac11997d20a7feb82e7b0c.zip
Vendorize Python 3.5's smtpd module, which properly handles non-UTF-8 byte
input. Use this version only for Python 3.4.
Diffstat (limited to 'src/mailman/utilities/compat.py')
-rw-r--r--src/mailman/utilities/compat.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/mailman/utilities/compat.py b/src/mailman/utilities/compat.py
new file mode 100644
index 000000000..3a8d782eb
--- /dev/null
+++ b/src/mailman/utilities/compat.py
@@ -0,0 +1,22 @@
+# Copyright (C) 2015 by the Free Software Foundation, Inc.
+#
+# This file is part of GNU Mailman.
+#
+# GNU Mailman is free software: you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option)
+# any later version.
+#
+# GNU Mailman is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+# more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# GNU Mailman. If not, see <http://www.gnu.org/licenses/>.
+
+"""Compatibility hacks."""
+
+__all__ = [
+
+ ]