Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4d746fca
Commit
4d746fca
authored
Aug 23, 2000
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add docstring explaining makefile limitation
fix support for passing http version to connect in HTTP
parent
6baec620
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
Lib/httplib.py
Lib/httplib.py
+11
-1
No files found.
Lib/httplib.py
View file @
4d746fca
...
...
@@ -541,7 +541,15 @@ class FakeSocket:
self
.
__sock
=
sock
self
.
__ssl
=
ssl
def
makefile
(
self
,
mode
):
# hopefully, never have to write
def
makefile
(
self
,
mode
,
bufsize
=
None
):
"""Return a readable file-like object with data from socket.
This method offers only partial support for the makefile
interface of a real socket. It only supports modes 'r' and
'rb' and the bufsize argument is ignored.
The returned object contains *all* of the file data
"""
if
mode
!=
'r'
and
mode
!=
'rb'
:
raise
UnimplementedFileMode
()
...
...
@@ -618,6 +626,8 @@ class HTTP:
self
.
send
=
self
.
_conn
.
send
self
.
putrequest
=
self
.
_conn
.
putrequest
self
.
endheaders
=
self
.
_conn
.
endheaders
self
.
_conn
.
_http_vsn
=
self
.
_http_vsn
self
.
_conn
.
_http_vsn_str
=
self
.
_http_vsn_str
# we never actually use these for anything, but we keep them here for
# compatibility with post-1.5.2 CVS.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment