[python-requests/el6] Correct my incorrect usage of "fedpkg new-sources"

Ralph Bean ralph at fedoraproject.org
Fri Feb 1 15:11:34 UTC 2013


commit 26bd8cc823cca9446223f8678214933ff6679e15
Author: Ralph Bean <rbean at redhat.com>
Date:   Fri Feb 1 10:11:28 2013 -0500

    Correct my incorrect usage of "fedpkg new-sources"

 .gitignore                            |    1 -
 python-requests-cookie-handling.patch |   35 +++++++++++++++++++++++++++++++++
 sources                               |    2 +-
 3 files changed, 36 insertions(+), 2 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 14db19b..b0af200 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,4 +10,3 @@
 /requests-0.11.1.tar.gz
 /requests-0.13.1.tar.gz
 /requests-0.14.1.tar.gz
-/python-requests-cookie-handling.patch
diff --git a/python-requests-cookie-handling.patch b/python-requests-cookie-handling.patch
new file mode 100644
index 0000000..520dea4
--- /dev/null
+++ b/python-requests-cookie-handling.patch
@@ -0,0 +1,35 @@
+From 2cecc4bc828fc1754cc26f279ec3ff5cd65cb8f7 Mon Sep 17 00:00:00 2001
+From: Ralph Bean <rbean at redhat.com>
+Date: Thu, 31 Jan 2013 21:38:58 -0500
+Subject: [PATCH] cookie handling
+
+---
+ requests/models.py | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/requests/models.py b/requests/models.py
+index 2193c6e..0a12237 100644
+--- a/requests/models.py
++++ b/requests/models.py
+@@ -17,7 +17,7 @@ from .structures import CaseInsensitiveDict
+ from .status_codes import codes
+ 
+ from .auth import HTTPBasicAuth, HTTPProxyAuth
+-from .cookies import cookiejar_from_dict, extract_cookies_to_jar, get_cookie_header
++from .cookies import cookiejar_from_dict, extract_cookies_to_jar, get_cookie_header, RequestsCookieJar
+ from .packages.urllib3.exceptions import MaxRetryError, LocationParseError
+ from .packages.urllib3.exceptions import TimeoutError
+ from .packages.urllib3.exceptions import SSLError as _SSLError
+@@ -207,7 +207,8 @@ class Request(object):
+                     extract_cookies_to_jar(self.cookies, self, resp)
+ 
+                 # Save cookies in Response.
+-                response.cookies = self.cookies
++                response.cookies = RequestsCookieJar()
++                extract_cookies_to_jar(response.cookies, self, resp)
+ 
+                 # Save cookies in Session.
+                 for cookie in self.cookies:
+-- 
+1.8.1
+
diff --git a/sources b/sources
index 47840c4..611d373 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-d1e890038183c27e3d804822cef5b602  python-requests-cookie-handling.patch
+3de30600072cbc7214ae342d1d08aa46  requests-0.14.1.tar.gz


More information about the scm-commits mailing list