Commit f27426ab authored by Jeremy Hylton's avatar Jeremy Hylton

Style

parent 93d8e033
...@@ -894,9 +894,9 @@ class HTTPConnection: ...@@ -894,9 +894,9 @@ class HTTPConnection:
self.putrequest(method, url, **skips) self.putrequest(method, url, **skips)
if body and ('content-length' not in header_names): if body and ('content-length' not in header_names):
thelen=None thelen = None
try: try:
thelen=str(len(body)) thelen = str(len(body))
except TypeError as te: except TypeError as te:
# If this is a file-like object, try to # If this is a file-like object, try to
# fstat its file descriptor # fstat its file descriptor
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment