~corey.bryant/python-keystoneclient/1.6.0

« back to all changes in this revision

Viewing changes to debian/patches/fix-requests-requirements.patch

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2013-02-11 12:32:43 UTC
  • Revision ID: package-import@ubuntu.com-20130211123243-vf4o7xig8e4lbijf
Tags: 1:0.2.2-0ubuntu2
debian/patches/fix-requests-requirements.patch: Bump python-requests
to 1.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
diff -Naurp python-keystoneclient-0.2.2.orig/keystoneclient/client.py python-keystoneclient-0.2.2/keystoneclient/client.py
 
2
--- python-keystoneclient-0.2.2.orig/keystoneclient/client.py   2013-01-14 12:27:07.000000000 -0600
 
3
+++ python-keystoneclient-0.2.2/keystoneclient/client.py        2013-02-11 12:34:25.832610713 -0600
 
4
@@ -50,10 +50,6 @@ class HTTPClient(object):
 
5
 
 
6
     USER_AGENT = 'python-keystoneclient'
 
7
 
 
8
-    requests_config = {
 
9
-        'danger_mode': False,
 
10
-    }
 
11
-
 
12
     def __init__(self, username=None, tenant_id=None, tenant_name=None,
 
13
                  password=None, auth_url=None, region_name=None, timeout=None,
 
14
                  endpoint=None, token=None, cacert=None, key=None,
 
15
@@ -113,7 +109,8 @@ class HTTPClient(object):
 
16
             ch = logging.StreamHandler()
 
17
             _logger.setLevel(logging.DEBUG)
 
18
             _logger.addHandler(ch)
 
19
-            self.requests_config['verbose'] = sys.stderr
 
20
+            if hasattr(requests, logging):
 
21
+                requests.logging.getLogger(requests.__name__).addHandler(ch)
 
22
 
 
23
         # keyring setup
 
24
         self.use_keyring = use_keyring and keyring_available
 
25
@@ -326,7 +323,6 @@ class HTTPClient(object):
 
26
             method,
 
27
             url,
 
28
             verify=self.verify_cert,
 
29
-            config=self.requests_config,
 
30
             **request_kwargs)
 
31
 
 
32
         self.http_log_resp(resp)
 
33
diff -Naurp python-keystoneclient-0.2.2.orig/tests/utils.py python-keystoneclient-0.2.2/tests/utils.py
 
34
--- python-keystoneclient-0.2.2.orig/tests/utils.py     2013-01-14 12:27:07.000000000 -0600
 
35
+++ python-keystoneclient-0.2.2/tests/utils.py  2013-02-11 12:38:18.044610825 -0600
 
36
@@ -17,7 +17,6 @@ class TestCase(testtools.TestCase):
 
37
     TEST_ROOT_ADMIN_URL = 'http://127.0.0.1:35357/'
 
38
     TEST_ADMIN_URL = '%s%s' % (TEST_ROOT_ADMIN_URL, 'v2.0')
 
39
     TEST_REQUEST_BASE = {
 
40
-        'config': {'danger_mode': False},
 
41
         'verify': True,
 
42
     }
 
43
 
 
44
@@ -94,7 +93,6 @@ class UnauthenticatedTestCase(testtools.
 
45
     TEST_ROOT_ADMIN_URL = 'http://127.0.0.1:35357/'
 
46
     TEST_ADMIN_URL = '%s%s' % (TEST_ROOT_ADMIN_URL, 'v2.0')
 
47
     TEST_REQUEST_BASE = {
 
48
-        'config': {'danger_mode': False},
 
49
         'verify': True,
 
50
     }
 
51
 
 
52
diff -Naurp python-keystoneclient-0.2.2.orig/tests/v3/utils.py python-keystoneclient-0.2.2/tests/v3/utils.py
 
53
--- python-keystoneclient-0.2.2.orig/tests/v3/utils.py  2013-01-14 12:27:07.000000000 -0600
 
54
+++ python-keystoneclient-0.2.2/tests/v3/utils.py       2013-02-11 12:38:21.196610827 -0600
 
55
@@ -40,7 +40,6 @@ class TestCase(testtools.TestCase):
 
56
     TEST_ROOT_ADMIN_URL = 'http://127.0.0.1:35357/'
 
57
     TEST_ADMIN_URL = '%s%s' % (TEST_ROOT_ADMIN_URL, 'v3')
 
58
     TEST_REQUEST_BASE = {
 
59
-        'config': {'danger_mode': False},
 
60
         'verify': True,
 
61
     }
 
62
 
 
63
@@ -70,7 +69,6 @@ class UnauthenticatedTestCase(testtools.
 
64
     TEST_ROOT_ADMIN_URL = 'http://127.0.0.1:35357/'
 
65
     TEST_ADMIN_URL = '%s%s' % (TEST_ROOT_ADMIN_URL, 'v3')
 
66
     TEST_REQUEST_BASE = {
 
67
-        'config': {'danger_mode': False},
 
68
         'verify': True,
 
69
     }
 
70
 
 
71
diff -Naurp python-keystoneclient-0.2.2.orig/tools/pip-requires python-keystoneclient-0.2.2/tools/pip-requires
 
72
--- python-keystoneclient-0.2.2.orig/tools/pip-requires 2013-01-14 12:27:07.000000000 -0600
 
73
+++ python-keystoneclient-0.2.2/tools/pip-requires      2013-02-11 12:38:32.392610832 -0600
 
74
@@ -1,5 +1,5 @@
 
75
 argparse
 
76
 iso8601>=0.1.4
 
77
 prettytable
 
78
-requests>=0.8.8,<1.0
 
79
+requests>=0.8.8
 
80
 simplejson