Commit 3b5d03e4 authored by Julien Muchembled's avatar Julien Muchembled

registry: document that workaround is only useful for old Python

parent 254dd5cd
...@@ -14,7 +14,8 @@ SOL_IPV6 = 41 ...@@ -14,7 +14,8 @@ SOL_IPV6 = 41
class RequestHandler(BaseHTTPRequestHandler): class RequestHandler(BaseHTTPRequestHandler):
def address_string(self): if __import__("sys").version_info < (2, 7, 4):
def address_string(self):
# Workaround for http://bugs.python.org/issue6085 # Workaround for http://bugs.python.org/issue6085
return self.client_address[0] return self.client_address[0]
......
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