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
fb35f65e
Commit
fb35f65e
authored
Aug 03, 2007
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A few local changes for consistency of string literals.
parent
c0f2d2d3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Lib/httplib.py
Lib/httplib.py
+5
-4
No files found.
Lib/httplib.py
View file @
fb35f65e
...
@@ -67,6 +67,7 @@ Req-sent-unread-response _CS_REQ_SENT <response_class>
...
@@ -67,6 +67,7 @@ Req-sent-unread-response _CS_REQ_SENT <response_class>
"""
"""
import
errno
import
errno
import
io
import
mimetools
import
mimetools
import
socket
import
socket
from
urlparse
import
urlsplit
from
urlparse
import
urlsplit
...
@@ -307,7 +308,7 @@ class HTTPMessage(mimetools.Message):
...
@@ -307,7 +308,7 @@ class HTTPMessage(mimetools.Message):
self
.
status
=
self
.
status
+
'; bad seek'
self
.
status
=
self
.
status
+
'; bad seek'
break
break
class
HTTPResponse
:
class
HTTPResponse
(
io
.
IOBase
)
:
# strict: If true, raise BadStatusLine if the status line can't be
# strict: If true, raise BadStatusLine if the status line can't be
# parsed as a valid HTTP/1.0 or 1.1 status line. By default it is
# parsed as a valid HTTP/1.0 or 1.1 status line. By default it is
...
@@ -897,7 +898,7 @@ class HTTPConnection:
...
@@ -897,7 +898,7 @@ class HTTPConnection:
self
.
send
(
body
)
self
.
send
(
body
)
def
getresponse
(
self
):
def
getresponse
(
self
):
"
Get the response from the server.
"
"
""Get the response from the server.""
"
# if a prior response has been completed, then forget about it.
# if a prior response has been completed, then forget about it.
if
self
.
__response
and
self
.
__response
.
isclosed
():
if
self
.
__response
and
self
.
__response
.
isclosed
():
...
@@ -1032,13 +1033,13 @@ class SSLFile(SharedSocketClient):
...
@@ -1032,13 +1033,13 @@ class SSLFile(SharedSocketClient):
avail
=
len
(
self
.
_buf
)
avail
=
len
(
self
.
_buf
)
while
size
is
None
or
avail
<
size
:
while
size
is
None
or
avail
<
size
:
s
=
self
.
_read
()
s
=
self
.
_read
()
if
s
==
''
:
if
s
==
""
:
break
break
L
.
append
(
s
)
L
.
append
(
s
)
avail
+=
len
(
s
)
avail
+=
len
(
s
)
all
=
""
.
join
(
L
)
all
=
""
.
join
(
L
)
if
size
is
None
:
if
size
is
None
:
self
.
_buf
=
''
self
.
_buf
=
""
return
all
return
all
else
:
else
:
self
.
_buf
=
all
[
size
:]
self
.
_buf
=
all
[
size
:]
...
...
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