Commit c362b8de authored by Denis Bilenko's avatar Denis Bilenko

socket: import 'long' constants in addition to 'int' from the original socket

currently it has no effect because there are not 'long' constants but I'd like not to depend on that.
parent 53ef4514
......@@ -95,7 +95,7 @@ gaierror = _socket.gaierror
for name in __socket__.__all__:
if name[:1].isupper():
value = getattr(__socket__, name)
if isinstance(value, (int, basestring)):
if isinstance(value, (int, long, basestring)):
globals()[name] = value
__all__.append(name)
elif name == 'getfqdn':
......
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