[Python-modules-commits] [python-eventlet] 17/19: merge patched into master
Thomas Goirand
zigo at moszumanska.debian.org
Tue Nov 14 21:39:23 UTC 2017
This is an automated email from the git hooks/post-receive script.
zigo pushed a commit to branch master
in repository python-eventlet.
commit 38895871413c7a852052e209b21642538b855dbd
Merge: 86d6992 ca0e323
Author: Thomas Goirand <zigo at debian.org>
Date: Tue Nov 14 22:32:19 2017 +0100
merge patched into master
debian/.git-dpm | 4 +-
...tion-errors-when-installing-package-in-Py.patch | 75 ++++++++++++++++++++++
debian/patches/series | 1 +
eventlet/green/http/client.py | 13 ++--
eventlet/green/http/cookiejar.py | 3 +-
5 files changed, 88 insertions(+), 8 deletions(-)
diff --cc debian/.git-dpm
index 30b8910,0000000..c8108f9
mode 100644,000000..100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@@ -1,11 -1,0 +1,11 @@@
+# see git-dpm(1) from git-dpm package
- daf82755d2f4f8ceee669d8f9779467f9ef7d3e1
- daf82755d2f4f8ceee669d8f9779467f9ef7d3e1
++ca0e32395ef6e48cdaaff90118766cc88a3230ab
++ca0e32395ef6e48cdaaff90118766cc88a3230ab
+b717fde61d936941885f6d11908d50802b22cefe
+b717fde61d936941885f6d11908d50802b22cefe
+python-eventlet_0.20.0.orig.tar.xz
+b84ed0ab1b54db4ccc5338bae84975391b90b354
+372532
+debianTag="debian/%e%v"
+patchedTag="patched/%e%v"
+upstreamTag="upstream/%e%u"
diff --cc debian/patches/0010-Fix-compilation-errors-when-installing-package-in-Py.patch
index 0000000,0000000..9b05b91
new file mode 100644
--- /dev/null
+++ b/debian/patches/0010-Fix-compilation-errors-when-installing-package-in-Py.patch
@@@ -1,0 -1,0 +1,75 @@@
++From ca0e32395ef6e48cdaaff90118766cc88a3230ab Mon Sep 17 00:00:00 2001
++From: Thomas Goirand <zigo at debian.org>
++Date: Tue, 14 Nov 2017 22:31:38 +0100
++Subject: Fix compilation errors when installing package in Python 2.7
++
++---
++ eventlet/green/http/client.py | 13 ++++++++-----
++ eventlet/green/http/cookiejar.py | 3 ++-
++ 2 files changed, 10 insertions(+), 6 deletions(-)
++
++diff --git a/eventlet/green/http/client.py b/eventlet/green/http/client.py
++index c7d3bda..8d5bcad 100644
++--- a/eventlet/green/http/client.py
+++++ b/eventlet/green/http/client.py
++@@ -121,6 +121,7 @@ Unread-response _CS_IDLE <response_class>
++ Req-started-unread-response _CS_REQ_STARTED <response_class>
++ Req-sent-unread-response _CS_REQ_SENT <response_class>
++ """
+++from __future__ import print_function
++
++ import email.parser
++ import email.message
++@@ -192,8 +193,8 @@ _MAXHEADERS = 100
++ # the patterns for both name and value are more leniant than RFC
++ # definitions to allow for backwards compatibility
++ # Eventlet change: match used instead of fullmatch for Python 3.3 compatibility
++-_is_legal_header_name = re.compile(rb'[^:\s][^:\r\n]*\Z').match
++-_is_illegal_header_value = re.compile(rb'\n(?![ \t])|\r(?![ \t\n])').search
+++_is_legal_header_name = re.compile(b'[^:\\s][^:\\r\\n]*\\Z').match
+++_is_illegal_header_value = re.compile(b'\\n(?![ \\t])|\\r(?![ \\t\\n])').search
++
++ # We always set the Content-Length header for these methods because some
++ # servers will otherwise respond with a 411
++@@ -205,14 +206,16 @@ def _encode(data, name='data'):
++ try:
++ return data.encode("latin-1")
++ except UnicodeEncodeError as err:
++- raise UnicodeEncodeError(
+++ exc = UnicodeEncodeError(
++ err.encoding,
++ err.object,
++ err.start,
++ err.end,
++ "%s (%.20r) is not valid Latin-1. Use %s.encode('utf-8') "
++ "if you want to send it encoded in UTF-8." %
++- (name.title(), data[err.start:err.end], name)) from None
+++ (name.title(), data[err.start:err.end], name))
+++ exc.__cause__ = None
+++ raise exc
++
++
++ class HTTPMessage(email.message.Message):
++@@ -1330,7 +1333,7 @@ else:
++
++ def __init__(self, host, port=None, key_file=None, cert_file=None,
++ timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
++- source_address=None, *, context=None,
+++ source_address=None, context=None,
++ check_hostname=None):
++ super(HTTPSConnection, self).__init__(host, port, timeout,
++ source_address)
++diff --git a/eventlet/green/http/cookiejar.py b/eventlet/green/http/cookiejar.py
++index 9c884e9..658faba 100644
++--- a/eventlet/green/http/cookiejar.py
+++++ b/eventlet/green/http/cookiejar.py
++@@ -1266,7 +1266,8 @@ def deepvalues(mapping):
++ pass
++ else:
++ mapping = True
++- yield from deepvalues(obj)
+++ for i in deepvalues(obj):
+++ yield i
++ if not mapping:
++ yield obj
++
diff --cc debian/patches/series
index f00ff61,0000000..ca26b15
mode 100644,000000..100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@@ -1,9 -1,0 +1,10 @@@
+0001-Removes-line-that-is-doing-FTBFS-in-doc.patch
+0002-Fixed-privacy-breach-in-examples.patch
+0003-Allow-more-busy-CPU.patch
+0004-Remove-networking-tests.patch
+0005-Removed-failing-test.patch
+0006-Patch-out-intersphinx.patch
+0007-Patched-test_getaddrinfo-due-netbase-update.patch
+0008-Disable-test_server_connection_timeout_exception.patch
+0009-Removed-test_urllib-that-is-failing-in-py36.patch
++0010-Fix-compilation-errors-when-installing-package-in-Py.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-eventlet.git
More information about the Python-modules-commits
mailing list