if err is not None:
raise err
else:
- raise error("getaddrinfo returns an empty list")
+ raise socket.error("getaddrinfo returns an empty list")
else:
compat_socket_create_connection = socket.create_connection
'compat_ord',
'compat_parse_qs',
'compat_print',
- 'compat_str',
'compat_socket_create_connection',
+ 'compat_str',
'compat_subprocess_get_DEVNULL',
'compat_urllib_error',
'compat_urllib_parse',