File tree Expand file tree Collapse file tree 4 files changed +26
-4
lines changed
Expand file tree Collapse file tree 4 files changed +26
-4
lines changed Original file line number Diff line number Diff line change 1+ // For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+ // README at: https://github.com/devcontainers/templates/tree/main/src/python
3+ {
4+ "name" : " Python 3" ,
5+ // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+ "image" : " mcr.microsoft.com/devcontainers/python:2-3.14-trixie"
7+
8+ // Features to add to the dev container. More info: https://containers.dev/features.
9+ // "features": {},
10+
11+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
12+ // "forwardPorts": [],
13+
14+ // Use 'postCreateCommand' to run commands after the container is created.
15+ // "postCreateCommand": "pip3 install --user -r requirements.txt",
16+
17+ // Configure tool-specific properties.
18+ // "customizations": {},
19+
20+ // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
21+ // "remoteUser": "root"
22+ }
Original file line number Diff line number Diff line change @@ -36,11 +36,11 @@ def __init__(self, resp):
3636
3737 def getheaders (self ):
3838 """Returns a dictionary of the response headers."""
39- return self .urllib3_response .getheaders ()
39+ return self .urllib3_response .headers
4040
4141 def getheader (self , name , default = None ):
4242 """Returns a given response header."""
43- return self .urllib3_response .getheader (name , default )
43+ return self .urllib3_response .headers . get (name , default )
4444
4545
4646class RESTClientObject (object ):
Original file line number Diff line number Diff line change 11python_dateutil >= 2.5.3
22setuptools >= 21.0.0
3- urllib3 >= 1.25.3
3+ urllib3 >= 2.6.1
Original file line number Diff line number Diff line change 2525# http://pypi.python.org/pypi/setuptools
2626
2727REQUIRES = [
28- "urllib3 >= 1.25.3 " ,
28+ "urllib3 >= 2.6.1 " ,
2929 "python-dateutil" ,
3030]
3131
You can’t perform that action at this time.
0 commit comments