Commit da8d6fd0 authored by Pavel Panchekha's avatar Pavel Panchekha
Browse files

Explain another assert

parent ab8907cc
......@@ -58,7 +58,7 @@ class socket:
assert len(self.body) == int(content_length), len(self.body)
def makefile(self, mode, encoding, newline):
assert self.connected and and self.port
assert self.connected and and self.port, "You cannot call makefile() on a socket until you call connect() and send()"
if self.port == 80 and self.scheme == "http":
url = self.scheme + "://" + + self.path
elif self.port == 443 and self.scheme == "https":
Supports Markdown
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